Convert Microsoft Excel Spreadsheet to PDF API method using Aspose.Cells REST API render incorrect number of pages

Hi all,

I have converted Excel to Pdf as following sample :
https://docs.aspose.cloud/display/cellscloud/Convert+Excel+Workbook+to+Different+File+Formats

The excel file has been setup print with 4 pages (excel-file.xlsx)
For a long time, we always have the convert pdf with 4 pages but today I have received the convert pdf with only 1 page and I don’t know why.

Can you tell me what wrong with it ?

Here is the detail information in converting pdf progress :
PDFSave options :

true
true
false
None
400
95
false
Pdf


strURISavePdf (raw URL) : http://api.aspose.com/v1.1/cells/excel_9361242.xlsx/saveAs?newfilename=excel_9361242.pdf&isAutoFitRows=true

Thanks,
Chien

Hi,


Thanks for providing us template files and sample code.

We are evaluating your issue and we will get back to you soon.

Thank you.

Hi,

I observed the issue as you mentioned. By converting an Excel file (which contains more than 1 pages) via Aspose.Cells for Cloud APIs, we always get the PDF file with only one page (first page only) even though the Excel file is set to more than one printable pages. I used the template file on the Cloud service with the following sample code:
e.g
Sample code:

APPKey.AppSID = “787xxxxxxxxxxxxxxxxxxxxxxxxxx”;
APPKey.AppKey = “3949xxxxxxxxxxxxxxxxxxxxxxx”;

string xml = @“
true
false
None
false
90
70
Pdf
”;

//build URI
string strURI = “http://api.aspose.com/v1.1/cells/excelfile1.xlsx/saveAs?newfilename=outexcelfile1.pdf&isAutoFitRows=true”;

//sign URI
string signedURI = Sign(strURI);
POST(signedURI, xml);
//build URI
strURI = “https://api.aspose.com/v1.1/storage/file/outexcelfile1.pdf”;

signedURI = Sign(strURI);

using (HttpWebResponse response = GET(signedURI))
{
using (var stream = File.Create(@“e:\test2\outFileExcel191.pdf”))

{ response.GetResponseStream().CopyTo(stream); }

}

I have logged a ticket with an id “SAASCELLS-102” for your issue. We will look into it soon.

Once we have any update on it, we will let you know here.

Thank you.

Hi Chien,

The issue has been resolved. Please test at your end and let us know if you still see any issue.

Best Regards,