Class: OCRModule

Core.PDFNet. OCRModule


new OCRModule()

The class OCRModule. static interface to PDFTron SDKs OCR functionality

Methods


<static> applyOCRJsonToPDF(dst, json)

Add hidden text layer to a PDF consisting of raster image(s).
Parameters:
Name Type Description
dst Core.PDFNet.PDFDoc | Core.PDFNet.SDFDoc | Core.PDFNet.FDFDoc - The source and destination document.
json string - JSON representing OCR results.
Returns:
Type
Promise.<void>

<static> applyOCRXmlToPDF(dst, xml)

Add hidden text layer to a PDF consisting of raster image(s).
Parameters:
Name Type Description
dst Core.PDFNet.PDFDoc | Core.PDFNet.SDFDoc | Core.PDFNet.FDFDoc - The source and destination document.
xml string - XML representing OCR results.
Returns:
Type
Promise.<void>