Print Page | Close Window

How to find text on the page?

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=518
Printed Date: 19 May 24 at 6:21AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: How to find text on the page?
Posted By: Dmitry
Subject: How to find text on the page?
Date 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



Replies:
Posted By: ukobsa
Date 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


Posted By: Ingo
Date 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



Posted By: Dmitry
Date Posted: 21 Sep 06 at 5:30AM
ukobsa and Ingo thanks for your replies!


Posted By: Bart
Date 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



Posted By: Dmitry
Date Posted: 25 Oct 06 at 2:29AM
Bart
I coluld answer you during the month. Ok?



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