PrintFit vs PrintDialogFit performance

Discussions about PDF management.
Post Reply
DerekLord
Posts: 3
Joined: Thu Oct 09, 2014 6:24 pm

PrintFit vs PrintDialogFit performance

Post by DerekLord » Thu Oct 09, 2014 6:41 pm

I have a 99kb 3 page PDF file.
I want to print direct to printer without the dialog but I get vastly different times when I call PrintFit vs PrindDialogFit to print the PDF.

PrintFit = 40 seconds
PrintDialogFit - 7 seconds

My code sample is C# Wndows Form, Visual Studio 2013, GdPicture v10.0.0.14 , a very simple exe that takes the pdf filename from the command line call.
How do I make the direct print work as fast?

Any assistance would greatly be appreciated.

Code: Select all

String[] arguments = Environment.GetCommandLineArgs();
GdPicturePDF oGdPicturePDF = new GdPicturePDF();
oGdPicturePDF.LoadFromFile(arguments[1], false);
oGdPicturePDF.PrintSetShowPrintingProgress(false);
oGdPicturePDF.PrintSetAutoRotation(true);
oGdPicturePDF.PrintSetFromToPage(1, oGdPicturePDF.GetPageCount());
oGdPicturePDF.PrintFit();  // This takes 40 seconds.
//oGdPicturePDF.PrintDialogFit(); // This takes 7 seconds after saying Ok to the dialog.
oGdPicturePDF.CloseDocument();

Gabriela
Posts: 436
Joined: Wed Nov 22, 2017 9:52 am

Re: PrintFit vs PrintDialogFit performance

Post by Gabriela » Mon Apr 01, 2019 2:04 pm

Hi,

We are sorry for being such late in answering, but are you experiencing such issues with the current release?
https://www.gdpicture.com/download-gdpicture/
The issue may also be related to the printer driver, and that is outside the GdPicture scope. Kindly let us know if you need further assistance.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest