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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Text too Faint on Render
  FAQ FAQ  Forum Search   Register Register  Login Login

Text too Faint on Render

 Post Reply Post Reply
Author
Message
oberon232 View Drop Down
Beginner
Beginner


Joined: 13 Feb 14
Location: Florida
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote oberon232 Quote  Post ReplyReply Direct Link To This Post Topic: Text too Faint on Render
    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? 
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 14 Feb 14 at 11:45PM
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.
Back to Top
oberon232 View Drop Down
Beginner
Beginner


Joined: 13 Feb 14
Location: Florida
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote oberon232 Quote  Post ReplyReply Direct Link To This Post Posted: 17 Feb 14 at 2:24PM
One of the files I have posted for review.

http://96.237.50.19/Andrew/1128618277.pdf
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 18 Feb 14 at 12:26PM

Oberon,

Have you tried using 

            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
Back to Top
oberon232 View Drop Down
Beginner
Beginner


Joined: 13 Feb 14
Location: Florida
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote oberon232 Quote  Post ReplyReply Direct Link To This Post Posted: 21 Feb 14 at 3:56PM
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);  
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 22 Feb 14 at 4:52AM
Oberon,

What DPI are you using to render to the Bitmap ?  Can you post a sample screen shot of what is currently being output ?

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.
Back to Top
oberon232 View Drop Down
Beginner
Beginner


Joined: 13 Feb 14
Location: Florida
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote oberon232 Quote  Post ReplyReply Direct Link To This Post Posted: 24 Feb 14 at 3:38PM
Here's the code I use

    Private Sub ShowPageInControl(ByRef ctrl As Control)
        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
Back to Top
AndyD View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Apr 13
Location: UK
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyD Quote  Post ReplyReply Direct Link To This Post Posted: 24 Feb 14 at 6:08PM
Oberon, a quick question out of curiosity really, why are you rendering this anyway and not leaving it as a pdf?
 
 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 25 Feb 14 at 7:49AM
Hi Andy,
 
he wants to build his own simple pdf-reader ;-)
 
Cheers, Ingo
Cheers,
Ingo

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 09 Mar 14 at 1:56PM
Oberon,

There is a 2nd conversion going on when you scale the image inside the PictureBox which would not be helping things.  

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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store