Link
Skip to main content

Included Fonts

Specify the font types to generate. We recommend using WOFF due to its smaller file size and excellent browser compatibility, unless you have a specific need for OTF. Generated fonts are shared by all pages in the document.

Additionally, you can use Base64 variants of the fonts (e.g., woff_base64 or otf_base64) to embed the font directly within the HTML/SVG without relying on external files.

Note: Base64 variants embed a copy of the font directly into each page that uses it, which can significantly increase the output file size. Furthermore, generated Base64 fonts include only the necessary mappings for the current page which means there will be a larger number of unique fonts generated for the document compared to non-base64 variants.

Expected values: Any comma separated list containing:

  • woff
  • otf
  • woff_base64
  • otf_base64

Default: woff

Usage Examples

Command Line

-Dorg.jpedal.pdf2html.includedFonts="woff_base64"

Cloud

{ "org.jpedal.pdf2html.includedFonts": "woff_base64" }

Java

conversionOptions.setIncludedFonts(new ConversionOptions.Font[]{ConversionOptions.Font.WOFF_BASE64});

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