linkedinfacebooktwittermenuarrow-up

GemBox Support Forum

Optimize print time

Hi,

I am trying to silent print a pdf file using gembox pdf in a WPF application. The approximate time taken by gembox to print a single page pdf file is around 1.8s. Is there any way I can optimize it further to reduce this time to milliseconds?

Code :

public void printBill(string pdfFile)
{
        
  GemBox.Pdf.ComponentInfo.SetLicense("FREE-LIMITED-KEY");
  GemBox.Pdf.ComponentInfo.FreeLimitReached += (sender, e) => e.FreeLimitReachedAction = GemBox.Pdf.FreeLimitReachedAction.Stop;
  using (GemBox.Pdf.PdfDocument pdf = GemBox.Pdf.PdfDocument.Load(pdfFile))
      pdf.Print();
}

Thanks.

Hi Subash,

GemBox sends the print instructions immediately upon the Print method call.
The delay is not caused by it.

Regards,
Mario