Print Page | Close Window

Rendering non-square DPI

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=1156
Printed Date: 31 Jan 26 at 6:58AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Rendering non-square DPI
Posted By: Eric24
Subject: Rendering non-square DPI
Date Posted: 27 Jul 09 at 6:17AM
Currently, the render function supports a single DPI parameter, meaning that if I specify 200, I get a 200x200 DPI output (which works fine), but what if I want 203x196 (standard fax resolution)? Is there any way to specify a non-square DPI (i.e., X and Y of different values)?



Replies:
Posted By: DELBEKE
Date Posted: 27 Jul 09 at 6:38AM
The QickPdf libary can't do it.
I wonder why you want to do that.
What you ca do is render the pdf in a file or stream and use an other way to strech the bitmap on the display or printing device. You can use StretchBlt api, for example.


Posted By: Eric24
Date Posted: 27 Jul 09 at 6:41AM
Well, the reason I'd want to do it is because a CCITT fax page is 203x196 DPI (for "hi res" faxes), not 200x200.


Posted By: DELBEKE
Date Posted: 27 Jul 09 at 7:35AM
To send faxes, you need a spécial tif file (CITTG3), and our library can't produce tifs. So you have to use a specilized imaging library. Such libraries can modify the resolution X / Y  independantly .


Posted By: Eric24
Date Posted: 27 Jul 09 at 8:05AM
Yes, that's understood. For my purposes, I don't want to directly send the output of the rendered PDF, so I don't need to go directly to CCITT TIFF, but it would still be nice to be able to adjust the X/Y resolution independently.



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