Printing the PDF to network Printer taking more than 30 minutes

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

Hi Shivarama,


Thanks for contacting support.

I am still not entirely certain about the reason why printing of document is taking so much time. Anyways, can you please share the source PDF file so that we can test the scenario at our end. We are sorry for this inconvenience.