Page 1 of 1

.318 - Does PDF have a text layer?

Posted: Fri Jun 16, 2017 2:49 pm
by docu-track99
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.

Re: .318 - Does PDF have a text layer?

Posted: Mon Jun 19, 2017 7:25 am
by Sasha - Tracker Dev Team
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