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!
![]() |
Finding Image Position |
Post Reply
|
| Author | |
chandy21
Team Player
Joined: 23 Sep 09 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Topic: Finding Image PositionPosted: 12 Oct 09 at 1:14PM |
|
Hi all, Something I am having trouble with and cannot seem to find the answer to is how to find the position on the page where an image is. I can "find" the images, and get some information like ImageWidth and ImageHeight but I can't seem to find it's X & Y position on the Page. Is this possible with QuickPDF? Thanks in advance, Chandy. |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 Oct 09 at 1:32PM |
|
Hi Chandy!
Sorry... But this isn't possible with QuickPDF. With QuickPDF you can get the relevant page and the image dimensions... Directly in the pdf-content/-code you can find additional values for used color-depth and size of the embedded image... But not the exact position. Cheers, Ingo |
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 Oct 09 at 4:46AM |
|
Take a look at the following direct access functions, they might be able to help you:
DAOpenFile DAGetPageImageList DAGetImageListCount DAGetImageDblProperty The DAGetImageDblProperty function will return the following properties for the specified image: 501 = Horizontal co-ordinate of top-left corner 502 = Vertical co-ordinate of top-left corner 503 = Horizontal co-ordinate of top-right corner 504 = Vertical co-ordinate of top-right corner 505 = Horizontal co-ordinate of bottom-right corner 506 = Vertical co-ordinate of bottom-right corner 507 = Horizontal co-ordinate of bottom-left corner 508 = Vertical co-ordinate of bottom-left corner |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 Oct 09 at 6:09AM |
|
Sorry ;-)
|
|
![]() |
|
chandy21
Team Player
Joined: 23 Sep 09 Status: Offline Points: 20 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 Oct 09 at 8:29AM |
|
Thanks for the replies guys. DAGetImageDblProperty looks like it will do the trick. Is there a way to do this with the Non-DA Functions? I can use DAGetImageDblProperty for this particular purpose and non-DA for other parts if I'm careful, but as I understand DA and Non-DA don't work together, I just wondered if there is a non-DA way to do this. Thanks in advance, chandy21 |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 Oct 09 at 9:00AM |
|
Hi!
These functionality is only in the DA-functions. You're right. Don't mix DA- with non-da-functions. 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