SaveFontToFileA
Fonts
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SaveFontToFile and string arguments are interpreted using the current SetAnsiMode code page
This function is useful for extracting fonts from a PDF that have been found with the FindFonts function. The TTF font data for the currently selected file will be saved. Only embedded TrueType fonts can be saved
Syntax
Delphi
Function DLSaveFontToFileA(InstanceID: Integer; FileName: PAnsiChar): Integer;
DLL
int DLSaveFontToFileA(int InstanceID, const char * FileName);
Parameters
| FileName | The path and file name of the file that should be created to store the font data in |
|---|
Return values
| 0 | The font is not embedded so there is no font data to save to the file |
|---|---|
| 1 | The embedded font data was written to the file successfully |