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 - How to find text on the page?
  FAQ FAQ  Forum Search   Register Register  Login Login

How to find text on the page?

 Post Reply Post Reply
Author
Message
Dmitry View Drop Down
Team Player
Team Player


Joined: 21 Sep 06
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmitry Quote  Post ReplyReply Direct Link To This Post Topic: How to find text on the page?
    Posted: 21 Sep 06 at 3:08AM
Hi everyone!
I have two small questions.

1. How can I find concrete text on the concrete page?
2. How to highlight this founded text?

Thanx
Back to Top
ukobsa View Drop Down
Senior Member
Senior Member


Joined: 29 May 06
Location: Germany
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote ukobsa Quote  Post ReplyReply Direct Link To This Post Posted: 21 Sep 06 at 4:36AM
Hi,

have a look for GetPageText with option 3 or 4. This gives you the text together with the coordinates of its bounding box.

For highlightening: take the coordinates and draw a new filled rectangle with transparency (best on a new layer).

HTH,
Uli
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 21 Sep 06 at 4:37AM
Hi Dimitry!

1) Use one of the functions:
DAExtractPageText, GetPageText or ExtractFilePageText.
Then the text is inside a string.
There you can use Pos(searchstring, string).
If the returning value is greater then 0 then your searchstring is inside the textcontentstring of the special page.

2) Sorry... I think that's not possible with QuickPDF. Perhaps one other guy here has more experience?
But ... what you can do with QuickPDF: If you know the pagenumber with the searchstring (1.) then you can make the pdf-document starting with that special page...

Best regards,
Ingo



Edited by Ingo
Back to Top
Dmitry View Drop Down
Team Player
Team Player


Joined: 21 Sep 06
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmitry Quote  Post ReplyReply Direct Link To This Post Posted: 21 Sep 06 at 5:30AM
ukobsa and Ingo thanks for your replies!
Back to Top
Bart View Drop Down
Beginner
Beginner


Joined: 20 Oct 06
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bart Quote  Post ReplyReply Direct Link To This Post Posted: 20 Oct 06 at 3:51AM

Hi Dimitry,

 

I would like to do the same thing as you.

Have you found a way to do this? and how?

Can you send or post the example?

 

Thanks

Back to Top
Dmitry View Drop Down
Team Player
Team Player


Joined: 21 Sep 06
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmitry Quote  Post ReplyReply Direct Link To This Post Posted: 25 Oct 06 at 2:29AM
Bart
I coluld answer you during the month. Ok?
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