Link
Skip to main content

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);

Get started with BuildVu in 3 steps

  1. Fill in the form to download the trial jar →
  2. Copy the code snippets as instructed on the next page
  3. Build your solution using our docs

Learn more about BuildVu

Start Your Free Trial

Trial License Type