Hi there,
We are trying to print the PDF document from a C# windows service to the network printer, But it is taking more than 30 minutes to print a small PDF document. The library we are using is Aspose.Pdf.dll - 7.5.0.0. Is there anything which I am missing in the code to make it faster ?
Below is the Code snippet which we are using
F.PdfViewer viewer = new F.PdfViewer();
P.Document document = new P.Document(fileName);
viewer.BindPdf(document);
System.Drawing.Printing.PrinterSettings ps = new System.Drawing.Printing.PrinterSettings();
ps.PrinterName = szPrinterName; // This is the network printer.
ps.FromPage = 1;
ps.ToPage = document.Pages.Count;
viewer.PrintDocumentWithSettings(ps);
Thanks & Regards,
Shivarama Shetty