Convert XLS File with Images or Charts to PDF

Contents
[ ]

Sample Code

from aspose.cells import SaveFormat, Workbook
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
try:
# Get the template excel file path.
designerFile = dataDir + "SampleInput.xls"
# Specify the pdf file path.
pdfFile = dataDir + "Output.out.pdf"
# Open the template excel file
wb = Workbook(designerFile)
# Save the pdf file.
wb.save(pdfFile, SaveFormat.PDF)
except Exception as e:
print(str(e))
input()