Font information is required to handle fonts with Antenna House PDF API. Specifically, fonts are used in processes such as inserting text watermarks, drawing text on the content of PDF pages, and inserting page numbers, etc. This chapter explains how to handle font information.
When Antenna House PDF API retrieves font information, it references the system's font folder or uses "font configuration file." How to reference the file differs depending on the OS. Regarding the "font configuration file", see "5-2 Font Configuration File Settings" below.
If you want to get font information from a specific folder, set the font configuration file. The font configuration file [font-config.xml] is created in the following folder path during installation.
{installation folder}\fontconfig\font-config.xml
To write font information, write the folder path where the font file exists in the "font-folder path" tag in [font-config.xml].
<font-config> <font-folder path="C:\TestFont"></font-folder> </ font-config>
In order to reflect the settings of the font configuration file, you need to create an environment variable and set the value.
Environment variable name: PTL80_FONT_CONFIGFILE
Value to set: Full path of [font-config.xml]
Note:
Unlike the Windows version, the installer does not set environment variables on the Linux version.Instead, the installer places "run.sh" with installation destination information.
"run.sh" is a shell script that executes a Command-line application after setting environment variables with installation destination information. For details, see "10-1-2 Running on Linux versions" in this manual.
Antenna House PDF API supports the following font formats:
The following fonts are not supported:
If you specify font embedding during processing with Antenna House PDF API, font information will be embedded in the PDF file. However, for the following fonts, font information will not be embedded even if embedding instructions are provided.
See "-embedFonts: Embedding fonts" in this manual for the actual settings in the command.
If you specify to merge fonts during PDF optimization processing using Antenna House PDF API, duplicate font information will be merged.
Merging fonts has the following conditions:
For details on how to actually specify merging fonts using commands, see Chapter 13 of this manual, "-optimize: Optimizing PDF Files."
There are limitations of Antenna House PDF API when processing using fonts.
For limitations on other than fonts, see "Chapter 8 Limitations " in this manual.
The commands for specifying fonts on Antenna House PDF API Command-line are covered in "Chapter 13 Parameters for Commands" in this manual.
The specific commands are as follows: