Search in PDF via code

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Search in PDF via code

Post by reinierkops »

How can I search for some words or sentences in a PDF
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Search in PDF via code

Post by Lzcat - Tracker Supp »

There is no specific functionf for search, however you may extract text from pdf page by page and search in it. But if you need positions you should use PXCp_ET_GetElement and related functions - only it provide text positions.
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
User avatar
John - Tracker Supp
Site Admin
Posts: 5225
Joined: Tue Jun 29, 2004 10:34 am

Re: Search in PDF via code

Post by John - Tracker Supp »

Or you can use the PDF-XChange Viewer search option ...

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
bcraytor1
User
Posts: 17
Joined: Thu Dec 18, 2008 9:04 pm

Re: Search in PDF via code

Post by bcraytor1 »

Is there a way to use these function to highlight text at a certain position on a page?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2504
Joined: Thu Jun 30, 2005 4:11 pm

Re: Search in PDF via code

Post by Vasyl - PDF-XChange »

The full search and highlight functionality will be added into the next build (NBuild > 41).

Thanks.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.