Print Page | Close Window

RenderPageToString() resolution issue

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=4036
Printed Date: 18 Apr 24 at 12:00AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: RenderPageToString() resolution issue
Posted By: Kathy
Subject: RenderPageToString() resolution issue
Date Posted: 11 Jan 24 at 4:58AM
I opened a pdf document with the following sizes: 3.37 X 2.12  
I call a library method that creates bitmap, asking for 300 dpi resolution: RenderPageToString(300, 1, 0) 
I am expecting to get a bitmap, having 1011 x 636 pixels.
(3.37x300=1011   2.12x300=636)

But the bitmap I get is 809 X 510.

Why do I get this resolution? Is this a library bug?



Replies:
Posted By: Ingo
Date Posted: 20 Feb 24 at 7:31PM
Hi Kathy :)

Perhaps a look into chapter "Measurement and coordinate units" from the referenceguide will help?
Have a special look on the functions below.
Calling them first could change your result...
SetMeasurementUnits
SetGlobalMeasurementUnits
SetGlobalScale



-------------
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