Excel to Pdf Conversion in Jython
Contents
[
Hide
]
Aspose.Cells - Excel to Pdf Conversion
To append documents using Aspose.Cells Java for Jython. Here you can see example code.
Jython Code
from aspose-cells import Settings
from com.aspose.cells import Workbook
from com.aspose.cells import SaveFormat
class Excel2PdfConversion:
def __init__(self):
dataDir = Settings.dataDir + 'WorkingWithFiles/Excel2PdfConversion/'
saveFormat = SaveFormat
workbook = Workbook(dataDir + "Book1.xls")
#Save the document in PDF format
workbook.save(dataDir + "OutBook1.pdf", saveFormat.PDF)
# Print message
print "\n Excel to PDF conversion performed successfully."
if __name__ == '__main__':
Excel2PdfConversion()
Download Running Code
Download Append Documents (Aspose.Cells) from any of the below mentioned social coding sites: