new Reflow()
The class Reflow.
Reflow annotations between PDF and HTML
DocumentConversion instances are created through methods belonging to
the Convert class. See Convert.CreateReflow 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>
-
setCustomStyles(styles)
-
Appends custom CSS styles to the output HTML. Default is no custom styles.
Parameters:
Name Type Description styles
string - the CSS code without any