public class

HandwritingICRModule

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.HandwritingICRModule

Class Overview

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

Summary

Public Methods
static void applyICRJsonToPDF(PDFDoc dst, String 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.
static String getICRJsonFromPDF(PDFDoc src)
Perform handwriting extraction on a PDF and return a JSON object of detected handwriting as a string.
static String getICRJsonFromPDF(PDFDoc src, HandwritingICROptions options)
Perform handwriting extraction on a PDF and return a JSON object of detected handwriting as a string.
static boolean isModuleAvailable()
Find out whether the Handwriting ICR Module is available (and licensed).
static void processPDF(PDFDoc dst, HandwritingICROptions options)
Perform handwriting extraction and add searchable and selectable text to a PDF.
static void processPDF(PDFDoc dst)
Perform handwriting extraction and add searchable and selectable text to a PDF.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void applyICRJsonToPDF (PDFDoc dst, String 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
dst The source and destination document.
json JSON representing handwriting ICR results.

public static String getICRJsonFromPDF (PDFDoc src)

Perform handwriting extraction on a PDF and return a JSON object of detected handwriting as a string.

Parameters
src The source document.
Returns
  • JSON string representing handwriting extraction results.

public static String getICRJsonFromPDF (PDFDoc src, HandwritingICROptions options)

Perform handwriting extraction on a PDF and return a JSON object of detected handwriting as a string.

Parameters
src The source document.
options Handwriting ICR options (optional).
Returns
  • JSON string representing handwriting extraction results.

public static boolean isModuleAvailable ()

Find out whether the Handwriting ICR Module is available (and licensed).

Returns
  • Returns true if handwriting extraction can be performed.

public static void processPDF (PDFDoc dst, HandwritingICROptions options)

Perform handwriting extraction and add searchable and selectable text to a PDF.

Parameters
dst The source and destination document.
options Handwriting ICR options (optional).

public static void processPDF (PDFDoc dst)

Perform handwriting extraction and add searchable and selectable text to a PDF.

Parameters
dst The source and destination document.