Search and highlight within PDF

Skip to first unread message


May 12, 2010, 2:34:49 PM5/12/10
to PDF2Text
Q: A few months ago we bought Pdf2Text and Pdf2Image and we've been
using it since and we like your product. When we went through the
documentation once again for Pdf2Text it clearly says in 1.1.3 Sample
Use Case Scenarios that you can use it to "Search PDF pages for
specific words or keywords and return their positioning information
(e.g. to highlight instances
of a given word)." However we cannot see any examples or figure out
what command to use to do this.
How can we use this feature?

A: There is no specific command line that will highlight words in an
existing PDF. PDF2Text only extracts text and positioning info (which
is stored in an XML file). This info can be used to add text
highlights using a PDF toolkit such as PDFNet SDK. For sample code
please see:

or the following article:

If you have a license for PDFNet you don’t really need PDF2Text
because all the functionality is available as part of
'pdftron.PDF.TextExtract' (see TextExtract sample -

You received this message because you are subscribed to the Google Groups "PDF2Text" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply all
Reply to author
0 new messages