Text Modes
The text mode controls how text and page content are rendered in the HTML output, for example whether text is output as real, selectable text or drawn as part of an image.
Each value has the form <background>_<text>. The first part sets how the background (presentation) layer is rendered; the second part sets how text is rendered:
- Background (
svgorimage) -svgkeeps vector content as SVG (zoomable, higher quality), whileimagerasterises everything onto a single image (smaller and faster, but pixelates on zoom). - Text (
realtextorshapetext) -realtextoutputs real, selectable text positioned with HTML and CSS (not vector outlines), whileshapetextdraws the text into the background layer as shapes, withselectableandnonselectablevariants.
So the default svg_realtext means an SVG background with real HTML/CSS text; the text itself is not drawn as SVG. See Text Mode Options for a full description of each mode.
Expected values:
svg_realtextsvg_shapetext_selectablesvg_shapetext_nonselectableimage_realtextimage_shapetext_selectableimage_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);