I have atttached file which is an xls file, which we try to convert to PDFA 3B format,
For that we read the stream and store it in “DocumentMetaData.DestinationStream” in below code snapshot, But when we call workbook.Save, it is noted that it goes inside and never comes out even after 15 min. can you please let us know behaviour at your end 1) it si getting converted ? 2) how long it take for conversion (Exact time)??
@Gayatri_Naik
There are 14.6k pages in the print view, so the pdf is large.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSNET-56660
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@Gayatri_Naik
Please refer to the following code to check page count:
Workbook wb = new Workbook(filePath + "input.xlsx");
WorkbookRender render = new WorkbookRender(wb, new ImageOrPrintOptions());
Console.WriteLine(render.PageCount);
The process (Excel to PDF) on our end is also consuming a significant amount of time. That’s why we logged a ticket (Ticket ID: “CELLSNET-56660”) for the issue to improve performance when exporting large XLS files to PDF. Please give us a little time, and we will evaluate the issue thoroughly and try to resolve the issue soon. Once we have an update, we will let you know.
The fastest way to get page cout is using WorkbookPrintingPreview.EvaluatedPageCount.
Code:
Workbook wb = new Workbook("989839_240613072628127_Tech Doc Matrix QA_SOAP_full rule set.xls");
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
imgOptions.AllColumnsInOnePagePerSheet = true;
WorkbookPrintingPreview workbookPrintingPreview =
new WorkbookPrintingPreview(wb, imgOptions);
Console.WriteLine(workbookPrintingPreview.EvaluatedPageCount);
Your source file has tons of pages, if you disable AllColumnsInOnePagePerSheet option, the total page count will be about 15k. It will cost significant time while converting such file to pdf.