SaveFontToFile
Fonts
Description
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 TPDFlib.SaveFontToFile(Const FileName: WideString): Integer;ActiveX
Function PDFlib::SaveFontToFile(FileName As String) As LongDLL
int DLSaveFontToFile(int InstanceID, wchar_t * 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 |