Print Page | Close Window

Image Location

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=689
Printed Date: 26 Aug 25 at 11:29PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Image Location
Posted By: andrewf22
Subject: Image Location
Date Posted: 26 Mar 07 at 12:40PM
Hi
 
Is there any way to find the location of an image in the PDF page.
I need something similar to what GetPageText returns. It returns the co-ordinates of the four points bounding the text.
 
Any ideas as to how to do this would be welcome. Thanks



Replies:
Posted By: chicks
Date Posted: 26 Mar 07 at 2:03PM
DAGetImageDblProperty
Description
Returns certain properties of an image in an image list.
Definition
function DAGetImageDblProperty(FileHandle As Long,
ImageListID As Long,
ImageIndex As Long,
PropertyID As Long) As Double
Parameters
FileHandle A handle returned by the DAOpenFile function.
ImageListID A value returned by the DAGetPageImageList function.
ImageIndex The index of the image. The first image in the list has an index of 1. Use the
DAGetImageListCount function to determine the number of images in the list.
PropertyID 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: andrewf22
Date Posted: 26 Mar 07 at 2:29PM
Hi
 
Thanks for the reply. Looks like this is a new method. I am using v4.28.
 
So the question now is can I use the same unlockkey which I have for v4.28 on the latest version v5.22 ?


Posted By: marian_pascalau
Date Posted: 26 Mar 07 at 2:36PM
As much as I know it should work.



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