Print Page | Close Window

Slow printing performance

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2777
Printed Date: 22 Nov 24 at 11:12PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Slow printing performance
Posted By: dtaylor
Subject: Slow printing performance
Date Posted: 09 Nov 13 at 7:14PM
I am using QuickPDF for a .Net project that involves printing of 11x17 (Ledger) size pages containing sizable black and white scanned images (mostly scanned text) and am seeing very slow printing speed. The documents are being printed to HP's Universal PCL Print Driver which is configured to print to file. A 36 page document, for example, takes in excess of two minutes to print on a fast development machine with an SSD drive.

The reason for this post is that I am seeing much better printing performance with Adobe Acrobat (under 15 seconds) and the trial version of the DynamicPDF library (under 8 seconds). I also tried the Aspose .Net PDF library and it is about 40% faster than QuickPDF for the same document.

Is there anything that can be done to improve QuickPDF printing performance? I have already tried setting the print resolution to 300 dpi which is the same resolution as the scanned images. The pages are also being printed full size with scaling disabled. Performance seems marginally better using the 64-bit version of QuickPDF.

Running the Delphi version of the application under Eric Grange's Sampling Profiler shows that most of the time is being spent in a GDI call (~57%). The GDI call appears to be related to copying bitmaps which makes sense given the heavy graphics content of the PDF.

Best Regards,
David







Replies:
Posted By: ixm7
Date Posted: 07 Dec 13 at 2:10PM
Did you find a solution to the slow printing speed problem?


Posted By: dtaylor
Date Posted: 07 Dec 13 at 5:35PM
We did not resolve the printing problem using Quick PDF, but found that Dynamic PDF performed 10x faster printing the same files. The downside is we needed to purchase another license that has a per-server deployment cost.


Posted By: ixm7
Date Posted: 07 Dec 13 at 6:34PM
That's disappointing. Perhaps Rowan would be kind enough to step in and provide an explanation/solution.

I'm wondering: have you tried to solve the issue by doing a command line call to request silent printing via Adobe Reader?


Posted By: dtaylor
Date Posted: 07 Dec 13 at 9:06PM
Adobe prints the same documents at a comparable speed to DynamicPDF. This is one of the reasons I decided to look into alternate printing solutions.

It would be great if QuickPDF could be optimized to handle this scenario better since it is not uncommon to find PDFs which contain large scanned images.


Posted By: Ingo
Date Posted: 09 Dec 13 at 9:43AM
Hi!
 
QuickPDF renders to bitmap before printing.
So why not change the standard renderer(GDI+) to Cairo:
http://www.debenu.com/docs/pdf_library_reference/SelectRenderer.php" rel="nofollow - http://www.debenu.com/docs/pdf_library_reference/SelectRenderer.php
Another try: What about avoid GDI+ via SetGDIPlusOptions:
http://www.debenu.com/docs/pdf_library_reference/SetGDIPlusOptions.php" rel="nofollow - http://www.debenu.com/docs/pdf_library_reference/SetGDIPlusOptions.php
 
Cheers and welcome here,
Ingo
 


-------------
Cheers,
Ingo



Posted By: ixm7
Date Posted: 09 Dec 13 at 1:30PM
Ingo, thanks for for this very useful information.

Looks like we should try a command line call to request silent printing via Adobe Reader.


Posted By: AndrewC
Date Posted: 21 Jan 14 at 12:10AM

We are currently expending some effort into improving the printing speed and reducing spool file sizes.  There should be some improvements in Debenu Quick PDF Library 10.13.

Andrew.


Posted By: ixm7
Date Posted: 21 Jan 14 at 1:59AM
Much appreciated!


Posted By: Rowan
Date Posted: 21 Jan 14 at 3:11AM
If anyone would like to take part in our beta program for the new printing improvements please sign up for our beta programs on this page:

http://www.debenu.com/beta-programs/" rel="nofollow - http://www.debenu.com/beta-programs/


Posted By: Natalia
Date Posted: 10 Aug 15 at 10:10PM
Hello,

We are using Debenu Quick PDF library 11.15, and still see that, when printing specific large files, the files created by Debenu is much larger than the ones created by another library, and the performance is slower.
We tried workarounds suggested by Ingo, but the problem was not solved.
When using SelectRenderer(3), the amount of consumed memory was even higher, consuming all available memory (8GB).
Printing using SetGDIPlusOptions(0, 0) printed text, but removed all images.

Is there other solution for the problem?

Thanks,
Natalia.




Posted By: ixm7
Date Posted: 11 Aug 15 at 12:28AM
See the new PrintMode option in the documentation.


Posted By: Natalia
Date Posted: 11 Aug 15 at 3:48PM
I tried changing PrintMode, and it did not affect the output size.
The same file was created when setting PrintMode to 0, 1 and 2. PrintMode returned corresponding value indicating that it was set.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk