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 - Finding Image Position
  FAQ FAQ  Forum Search   Register Register  Login Login

Finding Image Position

 Post Reply Post Reply
Author
Message
chandy21 View Drop Down
Team Player
Team Player
Avatar

Joined: 23 Sep 09
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote chandy21 Quote  Post ReplyReply Direct Link To This Post Topic: Finding Image Position
    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.

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: 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

 
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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
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: 13 Oct 09 at 6:09AM
Sorry ;-)

Back to Top
chandy21 View Drop Down
Team Player
Team Player
Avatar

Joined: 23 Sep 09
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote chandy21 Quote  Post ReplyReply Direct Link To This Post 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

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: 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
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