Print Page | Close Window

To select Image Coordinates

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=881
Printed Date: 15 May 24 at 5:33AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: To select Image Coordinates
Posted By: gsgsl
Subject: To select Image Coordinates
Date Posted: 26 Mar 08 at 1:18AM
Hi,
 
Can you please let me know how to select image coordinates of the pdf files? or draw the box above the images?
 
I can able to find an only the images found or not.Using the below codes.
 
'Check Image Found or not
FileName = "c:\pdf\VBJavaScript.pdf"
h = QP.DAOpenFile(FileName, "")
p = QP.DAFindPage(h, 1)
Call QP.FindImages
imlist = QP.DAGetPageImageList(h, p)
imcnt = QP.DAGetImageListCount(h, imlist)
If imcnt = 0 Then
    MsgBox "No Images"
Else
    MsgBox "Image Found"
End If
 
 
But, I cant able to select an images or Coordinates of the Image.
 
Please Help me.
 
 
Regards,
gsgsl



Replies:
Posted By: Ingo
Date Posted: 26 Mar 08 at 3:04AM
Hi!

Again... QP isn't great help in doing the described things.
Additional "FindImages" is buggy with memory-errors on bigger files.

What you can do with QP is to unencrypt the file and save it again unprotected. Then you can load the content into a stream and analyze it. You'll find there all objects with coordinates and much more. To access content QP offers few functions...

Best regards,
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