In the middle of migrating to the new version. Having an issue with cells in which the document does not look correct. Attached are correct.png (6.6 KB)
the correct doc and the incorrect doc. Was recommended to use the PdfSaveOptions but having difficulties. Namely, all the documentation and AI tools suggest using something like
Workbook wb = new Workbook(“foo.xlxs”);
PdfSaveOptions pdfSaveOptions = new pdfSaveOptions();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream
wb.save(outputStream, pdfSaveOptions);
Problem is, I cannot, for the life of me, find a single workbook that has a .save options, either Apache or yours. Am I looking in the wrong place?
There appears to be a discrepancy between the SDKs and the documentation. The documentation suggests that I would have the “save” method available but that is not present in the workbook that is present in the Aspose cells cloud 25.5 jar. Is this not the latest release? If so, is it possible I have some sort of trial SDK that does not contain all the methods?
Correct. 25.5 did not have the “save” method for the “workbook” class but 25.6 did. As far as I can tell, this was my fault for just not reading the documentation thoroughly enough and checking which software version I was using.
We are readying Aspose.Cells Cloud 25.6 version. But we did not release the version. And we checked your provided code. This code is used by Aspose.Cells.
Please check your reference library. There are Aspose.Cells and Aspose.Cells-Cloud libraries in NuGet.
@sjonesi You can also try using PutConvertWorkbook to convert it to pdf:
PutConvertWorkbookRequest request = new PutConvertWorkbookRequest();
request.setLocalPath("D:/TestData/yourfile.xlsx");
request.setFormat(format);
request.setOutPath(newfilename);
request.setOnePagePerSheet= false; //The default value of this option is true, and it is recommended to set it to false.
cellsApi.putConvertWorkbook(request);
Cells for Java. I should not need to make any additional purchases. I attempted to use cloud in order to convert the file to PDF but the file did not look correct and I was recommended to convert it locally.