Hello,
I need help determining whether a PDF has a text layer. Is there an example you can show me in vb.net code please? Keep in mind that the PDF has not been loaded into the Viewer. If there is no text layer then we would alert the end user so they can open in the Editor to perform OCR.
Thanks.
.318 - Does PDF have a text layer?
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: 518
- Joined: Thu Dec 06, 2007 8:13 pm
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: .318 - Does PDF have a text layer?
Hello docu-track99,
From what I see you will have to run through the document's pages and see whether they got text - easy as that. For that you will have to use the GetText method of the IPXC_Page interface.
Cheers,
Alex
From what I see you will have to run through the document's pages and see whether they got text - easy as that. For that you will have to use the GetText method of the IPXC_Page interface.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ