Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

convert excel to pdf python

# Import Module
from win32com import client
  
# Open Microsoft Excel
excel = client.Dispatch("Excel.Application")
  
# Read Excel File
sheets = excel.Workbooks.Open('Excel File Path')
work_sheets = sheets.Worksheets[0]
  
# Convert into PDF File
work_sheets.ExportAsFixedFormat(0, 'PDF File Path')
Comment

convert excel to pdf python

# Import Module
from win32com import client
  
# Open Microsoft Excel
excel = client.Dispatch("Excel.Application")
  
# Read Excel File
sheets = excel.Workbooks.Open('Excel File Path')
work_sheets = sheets.Worksheets[0]
  
# Convert into PDF File
work_sheets.ExportAsFixedFormat(0, 'PDF File Path')
Comment

PREVIOUS NEXT
Code Example
Python :: python use variable inside pandas query 
Python :: python regions 
Python :: for loops python 
Python :: how to use information from env variables in python 
Python :: adding strings together 
Python :: python regex match until first occurrence 
Python :: python print every character in list as string 
Python :: any function in python 
Python :: python merge two array into one 
Python :: function in python 
Python :: Insert list element at specific index 
Python :: How Generate random number in python 
Python :: fastest way to take screenshot python 
Python :: what is python -u 
Python :: dict to tuple 
Python :: copy class selenium python 
Python :: use functions to resample pandas 
Python :: how to remove last 2 rows in a dataframe 
Python :: extract address from text python 
Python :: print to screen 
Python :: print only strings in list python 
Python :: how to change order of attributes of an element using beautiful soup 
Python :: python newline 
Python :: add colorbar matplotlib 
Python :: 1036 solution python 
Python :: full row visible in jupyter notebook 
Python :: assert keyword in python 
Python :: Failed to build wxPython 
Python :: Pillow opencv convert RGB to BRG or RGB to BRG 
Python :: how to make a python file run in the background 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =