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!
size reduction and dpi |
Post Reply |
Author | |
rweetch
Senior Member Joined: 22 Feb 11 Status: Offline Points: 173 |
Post Options
Thanks(0)
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
|
|
edvoigt
Senior Member Joined: 26 Mar 11 Location: Berlin, Germany Status: Offline Points: 111 |
Post Options
Thanks(0)
|
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 |
|
rweetch
Senior Member Joined: 22 Feb 11 Status: Offline Points: 173 |
Post Options
Thanks(0)
|
thanks Werner. I'd missed this function! definatelt what we need!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store