We are using Aspose.pdf.dll product version:17.3.0
-
When we print the pdf file using Adobe reader it took less than 8 seconds but Aspose taking almost 1 minute 20 seconds.
Aspose printing time is almost 10X longer time than Adobe. -
When we print the pdf file using Adobe reader spool file size is 7.32MB but when we print Aspose pdf file spool size is 181 MB
-
The attached pdf file has only 253 pages and it took 1 minute 20s through Aspose but our most of the pdf files are more than 2000 pages.
Can you please suggest me what I am doing wrong.
Here is the code and pdf file.
Aspose.Pdf.License licensepdf = new Aspose.Pdf.License();
System.Drawing.Printing.PrinterSettings ps = new System.Drawing.Printing.PrinterSettings();
ps.PrinterName = PrinterName;
licensepdf.SetLicense(“Aspose.Pdf.lic”);
PdfViewer pdfViewer = new PdfViewer();
pdfViewer.BindPdf(Inputfilepath);
pdfViewer.PrinterJobName = “PRINT ENTIRE RETURN”;
pdfViewer.AutoResize = false;
pdfViewer.AutoRotate = true;
pdfViewer.RenderingOptions.SystemFontsNativeRendering = true;
//pdfViewer.PrintDocumentWithSettings(ps);
byte[] file = System.IO.File.ReadAllBytes(Inputfilepath);
using (MemoryStream memory = new MemoryStream(file))
{
pdfViewer.PrintLargePdf(memory);//, ps);
}
//pdfViewer.PrintDocument();
pdfViewer.Close();