Converting Excel to PDF Files in Python

Aspose.Cells - Converting Excel To Pdf

To convert Excel to Pdf file using Aspose.Cells for Java in Python, simply invoke excel_to_pdf() method of Converter module.

Python Code

 saveFormat = self.SaveFormat

workbook = self.Workbook(self.dataDir + "Book1.xls")

#Save the document in PDF format + "OutBook1.pdf", saveFormat.PDF)

\# Print message

print "\n Excel to PDF conversion performed successfully."

Download Running Code

Download Converting Excel To Pdf (Aspose.Cells) from any of the below mentioned social coding sites: