Link
Skip to main content

Fonts To Rasterize In Text Mode

In the realtext modes (svg_realtext and image_realtext), you can override real text on a font-by-font basis, causing text in the specified fonts to be drawn into the background layer instead of output as real text. In svg_realtext it is drawn as SVG vectors; in image_realtext it is rasterized into the page image.

Needs to start EXCLUDE= or INCLUDE= followed by a list of comma-separated fonts. Comparison is case-insensitive, so Arial, ARIAL and arial are the same.

Expected values:

  • INCLUDE=font1,font2,font3 … (rasterized JUST these fonts)
  • EXCLUDE=font1,font2,font3 … (rasterized all fonts EXCEPT these fonts)

For example:

  • EXCLUDE=PTSerif-Regular,Arial
  • INCLUDE=PTSerif-Regular,Arial

Default: unset

Usage Examples

Command Line

-Dorg.jpedal.pdf2html.fontsToRasterizeInTextMode="value"

Cloud

{ "org.jpedal.pdf2html.fontsToRasterizeInTextMode": "value" }

Java

conversionOptions.setFontsToRasterizeInTextMode("value");

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!

Learn more about BuildVu

Start Your Free Trial

Trial License Type