Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Text too Faint on Render |
Post Reply |
Author | |
oberon232
Beginner Joined: 13 Feb 14 Location: Florida Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 13 Feb 14 at 11:07PM |
When I open a file in Acrobat Viewer full screen, the text is bold and legible, but when I render the image onto a full screen (same size) DC, the text is very light and faint.
I have tried adjusting the SetGDIPlusOptions, but have not found any that make the page look any closer to the Adobe view. Does anyone have experience with this problem?
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Oberon,
This is most likely related to the PDF file itself. We would need to see the PDF file in order to make further comments. You can either post a download link here or can create a support case by emailing support@debenu.com The upcoming Debenu Quick PDF Library 10.13 version will include an improved rendering engine and may improve the rendering results. Andrew.
|
|
oberon232
Beginner Joined: 13 Feb 14 Location: Florida Status: Offline Points: 5 |
Post Options
Thanks(0)
|
One of the files I have posted for review. |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Oberon, QP.SetGDIPlusOptions(3, 1); // Turn on image smoothing Do we assume you are using the RenderPageToDC function ? Are you rendering to a local DC or to a Remote Desktop or terminal server DC ? Andrew. Edited by AndrewC - 18 Feb 14 at 12:29PM |
|
oberon232
Beginner Joined: 13 Feb 14 Location: Florida Status: Offline Points: 5 |
Post Options
Thanks(0)
|
I am rendering to a bitmap in a memory stream, and then sending that as the source of a picture box. I originally did the methodology of rending to DC, but the picture box allows me to scroll and zoom simply by changing the dimension of the picture box in the form.
I have tried QP.SetGDIPlusOptions(3, 1);
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Oberon, I use RenderPageToFile and 100, 200 and 300 dpi with QP.SetGDIPlusOptions(3, 1); and do not see any real quality issues with your PDF file. RenderPageToDC will produce better results as is use the native DPI and pixels available. Converting it to a bitmap will lose some definition as the image then needs to be rescaled to fit in the picturebox. So it is not a fair comparison to compare Acrobat to a scaled PictureBox image especially if the PictureBox is doing anything but 1:1 scaling.
Andrew. |
|
oberon232
Beginner Joined: 13 Feb 14 Location: Florida Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Here's the code I use Dim bmpData() As Byte Dim ms As IO.MemoryStream Dim bmp As Bitmap QP.SetGDIPlusOptions(3, 1) bmpData = DirectCast(QP.RenderPageToVariant(200, CurrentPage, 0), Byte()) ms = New IO.MemoryStream(bmpData) bmp = New Bitmap(ms) bmp.Save(ms, ImageFormat.Png) PictureBox1.Image = bmp ms.Dispose() End Sub And here is the screen capture http://dblinc.no-ip.com/andrew/screenCap.jpg
|
|
AndyD
Senior Member Joined: 30 Apr 13 Location: UK Status: Offline Points: 54 |
Post Options
Thanks(0)
|
Oberon, a quick question out of curiosity really, why are you rendering this anyway and not leaving it as a pdf?
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Andy,
he wants to build his own simple pdf-reader ;-) Cheers, Ingo
|
|
Cheers,
Ingo |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Oberon, You would get better results using RenderPageToDC as there would be less scaling operations involved or to use the new Debenu ActiveX renderer released alongside version 10.13 of Debenu PDF Library. http://www.debenu.com/products/development/debenu-pdf-viewer-sdk/
The other issues are the fact that Acrobat has a special function to enhance thin lines which is not easy to replicate when using GDI+ or our new rendering engine. Acrobat has spent millions of dollars developing, fine tuning and optimising their rendering engine. Andrew. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store