Free Support Forum - aspose.cloud

Page size incorrect on convert to pdf


#1

We are using cloud cells to convert the attached xlsx file to pdf with these options:

<PdfSaveOptions>
<CalculateFormula>true</CalculateFormula>
<EnableHTTPCompression>true</EnableHTTPCompression>
<CreateDirectory>false</CreateDirectory>
<Compliance>None</Compliance>
<desiredPPI>400</desiredPPI>
<jpegQuality>95</jpegQuality>
<OnePagePerSheet>false</OnePagePerSheet>
<SaveFormat>Pdf</SaveFormat>
</PdfSaveOptions>

The page size of A4 is not respected. See the attached resulting PDF which has a resulting page size of 8.10 x 10.52 instead of the expected 8.27 x 11.69.

JEVIC Sample Template v1.0.zip (118.5 KB)
JEVIC Sample Template by doForms.pdf (116.4 KB)


#2

@jsali

Thanks for your query. It seems you are using some old SDK. I have tested the scenario with the latest SDK and unable to notice the issue, please find the sample PDF document. Please upgrade to latest SDK, it will resolve the issue. However, if the issue persist then please share your sample code here. We will further investigate the issue and guide you accordingly.
Cells_SaveAs.pdf (117.0 KB)


#3

We are using the cloud service, so we don’t select the SDK. This is the cloud support forum, right?

Our code is just calling
http://api.aspose.com/v1.1/cells/[filename].xlsx/saveAs?newfilename=[filename].pdf&isAutoFitRows=true&appSID=[appid]&signature=[signature]

With the PdfSaveOptions mentioned in the original post.


#4

@jsali,

Thanks for your feedback. Yes, this is cloud support forum. I have tested the scenario with Aspsoe.Cells Cloud SDK for .NET. However, now testing with the SaveAs API using cURL and noticed the reported page size, so logged a ticket CELLSCLOUD-10238 for further investigation and rectification. We will notify you as soon as it is resolved.