Export 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.
The fonts inside the mounted volume will be installed on the docker image operating system. Only the .ttf
and .otf
font formats are supported. If you want to use other font formats, you need to convert them to the supported format or use these fonts as Web fonts.
Make sure that you can install and use converted fonts on your local machine first, before installing them on the docker container.
# Add custom fonts to PDF Converter
If you want to use your custom fonts in your PDF files, you can use the pdf-converter
Docker image and mount the directory with your custom fonts for the PDF Converter application running on a machine with a Unix-like system (this includes Docker on Windows with a WSL backend).
You just need to run the docker.cke-cs.com/pdf-converter
Docker image on a Unix-like operating system and mount the ~/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]