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!
![]() |
Scaling |
Post Reply
|
| Author | |
artjaggy
Beginner
Joined: 01 Jun 09 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: ScalingPosted: 08 Jun 09 at 4:24AM |
|
Hi guys,
I am trying to display existing pdf file onto canvas. Wen I display pdf at 72 dpi, everyting is ok, because when I retrieve page height and width using DAGetPageHeight, DAGetPageWidth I set cavas size accordingly. The problem comes in when I try to zoom, and by zoom, I mean rendering pdf file onto a canvas with dpi higher then 72. How would I now size of a page in pixels (eight and width) when I display a page in resolution that is not 72 dpi? Thnx in advance. |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 Jun 09 at 6:35AM |
|
Hi!
I don't use height and width while rendering ... What you can do is to render to file - then you have an image file and then you can use ImageHeight and ImageWidth. Mostly i'm using code like this: QP.RenderDocumentToFile(150,1,1,1,'c:\temp\' + ExtractFileName(Edit1.Text) + '.jpg',1,0); QP.RenderPageToStream(150,1,1,test_stream,1,0); You can put these render results on a resizable image component which is embedded in a nonresizable box with scrollbars. Cheers, Ingo |
|
![]() |
|
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