guideExport to PDF On-Premises fonts handling

During document writing, the possibility of using many different fonts can be very important to users.

Using the appropriate font can change the appearance of the document and emphasize its style.

PDF Converter allows you to use Web Fonts, gives you the ability to use standard operating system fonts or use your custom fonts without the need to import them using CSS.

Below is a list of the basic fonts included in the image:

OpenSans-Bold.ttf
OpenSans-BoldItalic.ttf
OpenSans-ExtraBold.ttf
OpenSans-ExtraBoldItalic.ttf
OpenSans-Italic.ttf
OpenSans-Light.ttf
OpenSans-LightItalic.ttf
OpenSans-Regular.ttf
OpenSans-Semibold.ttf
OpenSans-SemiboldItalic.ttf

However, you can add additional fonts to PDF Converter in two ways:

  • Use Unix-like PDF-Converter image docker.cke-cs.com/pdf-converter and mount your fonts directory to it. See Add custom fonts to PDF Converter section.
  • Use Windows PDF-Converter image docker.cke-cs.com/pdf-converter-windows and mount to it fonts directory from the Windows operating system on which the container is running. See Use Windows fonts in PDF Converter section.

# Add custom fonts to PDF Converter

If you want to use your custom fonts in your PDF files, you can use pdf-converter Docker image and mount the directory with you custom fonts to the PDF Converter application running on the machine with Unix-like system.

You just need to run docker.cke-cs.com/pdf-converter Docker image on Unix-like operating system and mount ./your_fonts_dir:/usr/share/fonts/your_fonts_dir volume.

Launch the Docker container on Unix-like operating system example:

docker run --init -v ./your_fonts_dir:/usr/share/fonts/your_fonts_dir -p 8080:8080 -e LICENSE_KEY=[your_license_key] docker.cke-cs.com/pdf-converter:[version]

# Use Windows fonts in PDF Converter

If you want to use Windows fonts like Arial, Verdana, etc. in your PDF files, you can use pdf-converter-windows Docker image that allows you to run the application on a machine with Windows operating system and mount fonts from the system.

You just need to run docker.cke-cs.com/pdf-converter-windows Docker image on Windows operating system and mount C:\Windows\Fonts:C:\Windows\Fonts volume.

Launch the Docker container on Windows operating system example:

docker run -v C:\Windows\Fonts:C:\Windows\Fonts -p 8080:8080 --env LICENSE_KEY=[your_license_key] docker.cke-cs.com/pdf-converter-windows:[version]