Question
How to determine if a page of a PDF file has a text layer?
Answer
This can be done using the IFRDocument::CheckTextLayer method.
- To check whether a specific page in a PDF file has a text layer, pass to the method an IntsCollection object containing only the index of that page.
- Pass CTM_HasText as the value of the CheckingMode parameter to check whether a page has a text layer.
- If a page has a text layer, call the method again passing CTM_ReliableText as the value of the CheckingMode parameter to check whether the page's text layer is reliable.
Comments
0 comments
Please sign in to leave a comment.