Class: HandwritingICRModule

PDFNet. HandwritingICRModule


new HandwritingICRModule()

The class HandwritingICRModule. static interface to Apryse SDK's handwriting extraction functionality

Classes

HandwritingICROptions

Methods


<static> applyICRJsonToPDF(dst, json)

Add a searchable and selectable hidden text layer to a PDF consisting of raster image(s) based on handwriting extraction performed in a previous function call.
Parameters:
Name Type Description
dst PDFNet.PDFDoc | PDFNet.SDFDoc | PDFNet.FDFDoc The source and destination document.
json string JSON representing ICR results.
Returns:
Type
Promise.<void>

<static> createHandwritingICROptions()

Method to create a HandwritingICROptions object
Returns:
A promise that resolves to a PDFNet.HandwritingICRModule.HandwritingICROptions.
Type
Promise.<PDFNet.HandwritingICRModule.HandwritingICROptions>

<static> getICRJsonFromPDF(src [, options])

Perform handwriting extraction on a PDF and return a JSON object of detected handwriting as a string.
Parameters:
Name Type Argument Description
src PDFNet.PDFDoc | PDFNet.SDFDoc | PDFNet.FDFDoc The source document.
options PDFNet.HandwritingICRModule.HandwritingICROptions <optional>
Handwriting ICR options (optional).
Returns:
A promise that resolves to jSON string representing handwriting extraction results.
Type
Promise.<string>

<static> isModuleAvailable()

Find out whether the Handwriting ICR Module is available (and licensed).
Returns:
A promise that resolves to returns true if handwriting extraction can be performed.
Type
Promise.<boolean>

<static> processPDF(dst [, options])

Perform handwriting extraction and add searchable and selectable text to a PDF.
Parameters:
Name Type Argument Description
dst PDFNet.PDFDoc | PDFNet.SDFDoc | PDFNet.FDFDoc The source and destination document.
options PDFNet.HandwritingICRModule.HandwritingICROptions <optional>
Handwriting ICR options (optional).
Returns:
Type
Promise.<void>