new Reflow()
The class Reflow.
Reflow annotations between PDF and HTML
DocumentConversion instances are created through methods belonging to
the Convert class. See Convert.ReflowWithPage for an example.
Extends
Methods
-
destroy()
-
Destructor
- Inherited From:
Returns:
- Type
- Promise.<void>
-
getAnnot(in_id)
-
Gets PDF annotation(s) as JSON.
Parameters:
Name Type Description in_id
string - an annotation ID, or an empty string. Returns:
A promise that resolves to returns JSON string.- Type
- Promise.<string>
-
getHtml()
-
Converts PDF to HTML.
Returns:
A promise that resolves to returns HTML as a string.- Type
- Promise.<string>
-
setAnnot(in_json)
-
Updates PDF annotation.
Parameters:
Name Type Description in_json
string - update instructions (JSON). Returns:
A promise that resolves to returns JSON string.- Type
- Promise.<string>
-
takeOwnership()
-
Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
- Inherited From:
Returns:
- Type
- void