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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Scaling
  FAQ FAQ  Forum Search   Register Register  Login Login

Scaling

 Post Reply Post Reply
Author
Message
artjaggy View Drop Down
Beginner
Beginner


Joined: 01 Jun 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote artjaggy Quote  Post ReplyReply Direct Link To This Post Topic: Scaling
    Posted: 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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store