I have a PDF that contains 7 reports that I need to search for 3 reports. Once I find all pages associated with the 3 reports I need to print or insert them into a new PDF all using VB6.
Does the SDK have the appropriate tools to allow this?
Sorry if this is the wrong forum.
Search PDF, extract pages, insert into new PDF with VB6
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.
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.
-
- User
- Posts: 2
- Joined: Mon May 23, 2016 6:27 pm
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Search PDF, extract pages, insert into new PDF with VB6
Hello Tom,
Yes the Editor SDK allows to extract pages text and search through it, and also to extract and insert needed pages into new document.
Cheers,
Alex
Yes the Editor SDK allows to extract pages text and search through it, and also to extract and insert needed pages into new document.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 2
- Joined: Mon May 23, 2016 6:27 pm
Re: Search PDF, extract pages, insert into new PDF with VB6
Could you give me a little more info?
What do you use to accomplish it?
Are there examples of any of the pieces in VB6? Even .NET would be better than nothing.
What do you use to accomplish it?
Are there examples of any of the pieces in VB6? Even .NET would be better than nothing.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Search PDF, extract pages, insert into new PDF with VB6
Hello Tom,
For better understanding, download our FullDemo project and also read this:
https://sdkhelp.pdf-xchange.com/view/PXV:CoClasses
This will give you an understanding of overall top level structure.
I) How to get text from page:
Assuming you've read the above topic, you have the IPXV_Control available.
1) This will get you a IPXV_Document https://sdkhelp.pdf-xchange.com/vie ... ocFromPath
2) Then you'll need to get a core IPXC_Document from it https://sdkhelp.pdf-xchange.com/vie ... ontrol_Doc
3) The IPXC_Document holds pages manager https://sdkhelp.pdf-xchange.com/vie ... ment_Pages
4) You can get a page by index using https://sdkhelp.pdf-xchange.com/vie ... Pages_Item
5) Having the IPXC_Page you can get the IPXC_PageText by using this method https://sdkhelp.pdf-xchange.com/vie ... ge_GetText
Now you basically have all of the characters on the page with their correspondent styles. Then you can get a text string from these characters and perform a search that you need.
II) How to insert pages into the document or extract them into new document:
Insert: https://sdkhelp.pdf-xchange.com/vie ... nsertPages
Extract: https://sdkhelp.pdf-xchange.com/vie ... tractPages
Cheers,
Alex
For better understanding, download our FullDemo project and also read this:
https://sdkhelp.pdf-xchange.com/view/PXV:CoClasses
This will give you an understanding of overall top level structure.
I) How to get text from page:
Assuming you've read the above topic, you have the IPXV_Control available.
1) This will get you a IPXV_Document https://sdkhelp.pdf-xchange.com/vie ... ocFromPath
2) Then you'll need to get a core IPXC_Document from it https://sdkhelp.pdf-xchange.com/vie ... ontrol_Doc
3) The IPXC_Document holds pages manager https://sdkhelp.pdf-xchange.com/vie ... ment_Pages
4) You can get a page by index using https://sdkhelp.pdf-xchange.com/vie ... Pages_Item
5) Having the IPXC_Page you can get the IPXC_PageText by using this method https://sdkhelp.pdf-xchange.com/vie ... ge_GetText
Now you basically have all of the characters on the page with their correspondent styles. Then you can get a text string from these characters and perform a search that you need.
II) How to insert pages into the document or extract them into new document:
Insert: https://sdkhelp.pdf-xchange.com/vie ... nsertPages
Extract: https://sdkhelp.pdf-xchange.com/vie ... tractPages
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ