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!
How to find text on the page? |
Post Reply |
Author | |
Dmitry
Team Player Joined: 21 Sep 06 Status: Offline Points: 47 |
Post Options
Thanks(0)
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 |
|
ukobsa
Senior Member Joined: 29 May 06 Location: Germany Status: Offline Points: 115 |
Post Options
Thanks(0)
|
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 |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
Dmitry
Team Player Joined: 21 Sep 06 Status: Offline Points: 47 |
Post Options
Thanks(0)
|
ukobsa and Ingo thanks for your replies!
|
|
Bart
Beginner Joined: 20 Oct 06 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
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 |
|
Dmitry
Team Player Joined: 21 Sep 06 Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Bart
I coluld answer you during the month. Ok? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store