OCR flag

Is there any flag in MFiles that the document has OCR layer?

Use case: Customer has contracts with OCR without signatures. Users usualy replace versions with OCR (without signatures) with new scan (pdf) with signatures but without OCR.
I need to identify which documents do not have an OCR layer.

Parents
  • There is not natively, no.  You could have some custom code (event handler, custom property value, etc.) that perhaps checks the file type and, if it's a PDF or similar, calls GetTextContent.  If any text content is returned then it's got a text layer, otherwise it does not.

    There's a performance overhead to do this of course, so that would be something to consider with large volumes of content.

Reply
  • There is not natively, no.  You could have some custom code (event handler, custom property value, etc.) that perhaps checks the file type and, if it's a PDF or similar, calls GetTextContent.  If any text content is returned then it's got a text layer, otherwise it does not.

    There's a performance overhead to do this of course, so that would be something to consider with large volumes of content.

Children
No Data