Print Page | Close Window

resize using RenderPageToDC

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=1579
Printed Date: 12 May 25 at 11:23PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: resize using RenderPageToDC
Posted By: pavsej
Subject: resize using RenderPageToDC
Date Posted: 22 Sep 10 at 12:43PM
Hello,
 
When rendering a page using RenderPageToDC I would like to resize this page to fit fully to HDC.
 
I tried:
SetPageDimensions
SetPageBox
PrintOptions
 
but it didnt help.
 
Thanks,
Pavel
 



Replies:
Posted By: Ingo
Date Posted: 22 Sep 10 at 2:28PM
Hi Pavel!

If you don't get an answer here
you should try the official support pages.

Cheers and welcome here,
Ingo



Posted By: abhay
Date Posted: 24 Feb 11 at 5:00PM
You need to adject the DPI accordingly.
DPI 72 is default you can say 100%
Now according to ratio of Page Height and width with DC height width multiply or divide the DPI.

Also you can use SetRenderScale

(Sorry, I am feeling sleepy... I think what I typed is correct)



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