Print Page | Close Window

DPI Values Not Being Set Correctly

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=1457
Printed Date: 04 Apr 26 at 5:34PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DPI Values Not Being Set Correctly
Posted By: Roulette
Subject: DPI Values Not Being Set Correctly
Date Posted: 26 May 10 at 2:51AM
I'm using DARenderPageToFile() to save TIFF images from a loaded PDF.  The problem is that specifying the DPI value is just causing the image to be scaled (so that it includes the correct number of pixels) instead of scaling the image AND setting the internal TIFF DPI tags.  For example, if I render an 8.5"x11.0" PDF at 300 DPI, I get an image with dimensions of 2550x3300 (which is correct) but the TIFF X/Y DPI tags are ALWAYS set to 96 (instead of whatever you specify for the rendering.)
 
Alternatively, I tried saving a JPEG file and saw the same problem except that the DPI values were then always set to 72 DPI.
 
Is there a way to make QuickPDF set the DPI values in the output images to the value used for rendering?
 
- Roulette
 



Replies:
Posted By: Ingo
Date Posted: 26 May 10 at 6:28AM
Hi!

Like you has written ...
It's just a scaling.
The real dpi-value of the image won't be changed.
QuickPDF is for pdf - not for images ... It works like designed ;-)

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