A Search question

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

A Search question

Post by jusWest »

Hello!

In our product we need to search each page in the document for a document id. This id is located in the footer of the pages.

The information I need to return is the id itself and the page number it is on. This should be able to be stored in a list.

I have read about op.serach and IPXC_PageText, but I'm not sure which is best suited for the task

What would be the best way to achieve this?

/ronny
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: A Search question

Post by Sasha - Tracker Dev Team »

Hello Ronny,

I think using the IPXC_PageText would be optimal in this case. If you know the location of the text that you require, you can use the https://sdkhelp.pdf-xchange.com/vi ... t_LineInfo to get the text lines starting from the bottom. The https://sdkhelp.pdf-xchange.com/vi ... xtLineInfo structure contains the first char index and line character count that you can use with the https://sdkhelp.pdf-xchange.com/vi ... eText_Char property to get each character in the line and form a string from them. Then you can analyze your string for the text you need and you should get your desired result.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

Re: A Search question

Post by jusWest »

Great, thank you, that got me on the right track :)
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: A Search question

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply