A Search question

PDF-XChange Editor SDK for Developers

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

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: 47
Joined: Fri Aug 24, 2018 8:26 am

A Search question

Post by jusWest » Wed May 15, 2019 6:58 am

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

User avatar
Sasha - Tracker Dev Team
User
Posts: 4076
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: A Search question

Post by Sasha - Tracker Dev Team » Wed May 15, 2019 8:07 am

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.tracker-software.com/vi ... t_LineInfo to get the text lines starting from the bottom. The https://sdkhelp.tracker-software.com/vi ... xtLineInfo structure contains the first char index and line character count that you can use with the https://sdkhelp.tracker-software.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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

jusWest
User
Posts: 47
Joined: Fri Aug 24, 2018 8:26 am

Re: A Search question

Post by jusWest » Wed May 15, 2019 9:31 am

Great, thank you, that got me on the right track :)

User avatar
Sasha - Tracker Dev Team
User
Posts: 4076
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: A Search question

Post by Sasha - Tracker Dev Team » Wed May 15, 2019 9:33 am

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply