Print Page | Close Window

Finding Image Position

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=1234
Printed Date: 17 Jan 26 at 3:36PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Finding Image Position
Posted By: chandy21
Subject: Finding Image Position
Date Posted: 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.




Replies:
Posted By: Ingo
Date 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

 


Posted By: Rowan
Date 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


Posted By: Ingo
Date Posted: 13 Oct 09 at 6:09AM
Sorry ;-)



Posted By: chandy21
Date 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



Posted By: Ingo
Date 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



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