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

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