Link

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

What's included in your BuildVu trial?

  • Access to download the SDK and run it locally.
  • Access to the cloud trial to convert documents in the IDR cloud.
  • Access to the Docker image to set up your own trial server in the cloud.
  • Communicate with IDR developers to ask questions & get expert advice.
  • Plenty of time to experiment and build a proof of concept.
  • Over 100 articles to help you get started and learn about BuildVu.
  • An exceptional PDF to HTML converter that took over 20 years to build!

Start Your Free Trial