Print Page | Close Window

Old reliable QuickPDF 10.13 printing blank pages

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3582
Printed Date: 26 Apr 24 at 10:37PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Old reliable QuickPDF 10.13 printing blank pages
Posted By: RedOctober2018
Subject: Old reliable QuickPDF 10.13 printing blank pages
Date Posted: 22 Jun 18 at 6:32PM
I am supporting a very large legacy product built in Delphi XE3 using QuickPDF Library 10.13.
This software ran correctly on Windows Server 2008 for many years, and has been moved to Windows Server 2016 Standard.

When we try to print from our software, we get only blank pages.  The page count is correct, it's just all blank. This happens no matter which brand or model of printer we print to.  Every other PDF viewer is able to print correctly to these same printers, so I don't think it's a problem with the network or the printers.

We cycled the Print Spooler service and that fixed it for about a day.  The QuickPDF Library would actually print correctly, so I don't think it's a problem with the software that QuickPDF is a part of, I'm thinking it's just QuickPDF is needing something that we are not giving it.

Is there a library missing or some other thing I am missing that I need to give to or do to QuickPDF Library that would cure this "printing blank pages" problem?

Thanks in advance for any help you can provide.



Replies:
Posted By: Ingo
Date Posted: 25 Jun 18 at 7:59PM
If there isn't a special renderer included like Cairo, AGG or PDFium access to gdi+ (old windows standard graphic dll) is necessary - perhaps there's the problem?



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



Posted By: RedOctober2018
Date Posted: 06 Jul 18 at 1:00AM
Hi Ingo, I've provided a copy of the GDIPlus DLL by putting it in the same folder as the .exe.  Did not help.  I've built a little test app that I can use to tinker with settings.

Can you explain the proper way to use .PrintDocumentToPrinterObject( ) in a code example?   I'm wondering if I print to a printer object if that will bypass the problem and print correctly.  I cannot find any examples of how to use this function, just the QuickPDF reference which has no examples.

Thanks.


Posted By: tfrost
Date Posted: 06 Jul 18 at 3:00PM
GDIPlus is the default renderer in current QPDF and should not need an extra DLL.  But you can always check, using a tool like Process Explorer, precisely which DLLs your process has loaded.

To use alternate rendering engines, see the documentation topic for SelectRenderer.  You also need to supply the pathname for the renderer DLL using one of the functions referenced in that topic.  The provided DLLs themselves can be found in the Rendering and Printing Add-On folder in the QPDF installation folder.

You can print to the default printer from Delphi (only) with something like (untested):

   pdf.PrintDocumentToPrinterObject(Printer, 1, 1, pdf.DplPrintOptions(0,0,'My Document'));




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