Hello everyone. I’m having a problem with asposecells when I try to convert to pdf using a python script. When I use the command below, It returns a file in the tmp folder (/tmp/tmp2um80uod) but this file seems to be broken because is without the right format.
cellsApi.cells_workbook_put_convert_workbook(fullfilename, format= ‘PDF’)
I have not found a solution and I will be grateful with any help.
@DavidA30,
You may share your sample Excel file and runnable program to test this scenario here. Please ensure that the latest version is used for testing this issue at your end.
@DavidA30
We are sorry for the inconvenience. Please note we have already reproduced the issue and logged a ticket CELLSCLOUD-10354 for rectification. We will update you as soon as we resolve the issue.
@DavidA30,
Please try Aspose.Cells Cloud SDK for Python 21.5.
And refer to the following code:
fullfilename = os.path.dirname(os.path.realpath(__file__)) + "/../TestData/" + "Book1.xlsx"
format ='pdf'
password = None
outPath = None
result = self.api.cells_workbook_put_convert_workbook(fullfilename,format=format)
shutil.copy(result,"book1.pdf")