Text Modes
The text mode controls how text is rendered in the html output, for example your text can be made selectable or as an image and made non selectable.
For an explanation of text modes, please click here.
Important : shapetext modes extract the font metrics from the embedded fonts and includes them as shapes. If there are no embedded fonts then the converter will use Arial to ensure that text is actually displayed, although this may not be an ideal match (and we recommend using embedded fonts).
In the case where there are no embedded fonts, it’s best to use a realtext mode.
Expected values:
svg_realtext
svg_shapetext_selectable
svg_shapetext_nonselectable
image_realtext
image_shapetext_selectable
image_shapetext_nonselectable
Default: svg_realtext
Usage Examples
Command Line
-Dorg.jpedal.pdf2html.textMode="svg_shapetext_nonselectable"
Cloud
{ "org.jpedal.pdf2html.textMode": "svg_shapetext_nonselectable" }
Java
conversionOptions.setTextMode(ConversionOptions.TextMode.SVG_SHAPETEXT_NONSELECTABLE);