Print Page | Close Window

size reduction and 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=2146
Printed Date: 29 Sep 24 at 12:16AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: size reduction and dpi
Posted By: rweetch
Subject: size reduction and dpi
Date Posted: 11 Feb 12 at 12:34AM
My client wants me to create images of a pdf at A4 size at 72dpi. The actual size of the pdf is A1 - any ideas about the best way to go about this?
 
Thanks



Replies:
Posted By: edvoigt
Date Posted: 11 Feb 12 at 6:02PM
Hi,

you have to do a small calculation before rendering. I do it only for width, assuming the format ist in source and target exactly DIN.

A1 is 594mm, A4 210 in the width. That means the size should go down by 210/594.

So we use this for SetRenderscale(210/594). I like this function!

After this a rendering with 72dpi should give an image with the right format (A4 at 72dpi).

This is: 210*72/25.4=595 pixels.

Resulting image should became 595x842

Cheers,
Werner




Posted By: rweetch
Date Posted: 14 Feb 12 at 3:13PM
thanks Werner. I'd missed this function! definatelt what we need!



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