Print Page | Close Window

Print Using Selected Renderer

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=3490
Printed Date: 25 Apr 24 at 11:16PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Print Using Selected Renderer
Posted By: jpbro
Subject: Print Using Selected Renderer
Date Posted: 07 Aug 17 at 2:42PM
Hi everyone- there's a good chance that this is something that only the QPDF devs could help with, but I thought I'd check in here to see if anyone had any ideas, or if I've just missed something.

I have a PDF that doesn't render properly using the GDI+ renderer, but it renders well using PDFium in QPDF 13.12.

However, when I call PrintDocument, it seems that it doesn't use the PDFium renderer even though it is selected (so the printed output is rendered incorrectly in the same way that GDI+ appears to render it incorrectly).

Does anyone know if there is a way to get QPDF to print using the selected renderer as opposed to (I suspect) staying with GDI+?

Thanks!



Replies:
Posted By: Ingo
Date Posted: 07 Aug 17 at 8:25PM
Hi,

did you use SetPDFiumFileName?



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



Posted By: jpbro
Date Posted: 08 Aug 17 at 1:41AM
Hi Ingo,

Thanks for your feedback!

Yes, I tried SetPdfiumFileName (returned 1) and SetRenderer = 4 (returned 4). I've confirmed that PDFium is doing the rendering because QPDF correctly renders my document to the screen whereas the DPLR or GDI+ renderers do not (in my case bullets are being rendered as infinity symbols when using DPLR/GDI+, but rendered as circles when using PDFium).

However, even when PDFium is in use for screen rendering, it seems like PrintDocument ignores that and uses GDI+ when printing. I suspect it is something that only Foxit can fix, but I just wanted to make sure I wasn't missing anything that another user knew about or had a workaround for.


Posted By: Ingo
Date Posted: 08 Aug 17 at 9:10PM
perhaps (what shouldn't be okay) 'cause gdi+ is still installed?



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



Posted By: sjnam07
Date Posted: 16 Jan 19 at 1:05PM
Hello jpbro,

Did you find solution of this issue?
I have same problem with this thread.
Would you let me know if it is solved?

Thank you.


Posted By: sjnam07
Date Posted: 20 Jan 19 at 11:33AM
---


Posted By: sjnam07
Date Posted: 20 Jan 19 at 11:34AM
Hello all,

I got answer from Foxit as follow.
==================================================================
Printing is done always using GDI+
Selected render affects only the render function not printing function.

There are only 2 possibilities how you can use PDFium for printing.

1. Render the page to image and then sent that rendered image to printer.

2. Use PDFiumPrintDocument function. First set the renderer to PDFium and then call this function with correct parameters. The function basically does the same thing as you will have to do manually in no. 1
==================================================================

I followed this solution then it works well.


Posted By: Ingo
Date Posted: 20 Jan 19 at 10:05PM
Hi,

thanks a lot to let us know about the answer from the publishers.
I think you've pointed into a problem of common interests so i've posted something similar into "General Discussion".
Often users are asking something but if they've solved their problems they are leaving here without a comment...nothing. So again ... thanks a lot for your help.



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




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