I have converted Excel to Pdf as following sample :
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 :
strURISavePdf (raw URL) : http://api.aspose.com/v1.1/cells/excel_9361242.xlsx/saveAs?newfilename=excel_9361242.pdf&isAutoFitRows=true
Convert Microsoft Excel Spreadsheet to PDF API method using Aspose.Cells REST API render incorrect number of pages
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:
APPKey.AppSID = “787xxxxxxxxxxxxxxxxxxxxxxxxxx”;
APPKey.AppKey = “3949xxxxxxxxxxxxxxxxxxxxxxx”;
string xml = @“
string strURI = “http://api.aspose.com/v1.1/cells/excelfile1.xlsx/saveAs?newfilename=outexcelfile1.pdf&isAutoFitRows=true”;
string signedURI = Sign(strURI);
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”))
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.
The issue has been resolved. Please test at your end and let us know if you still see any issue.