Debenu Quick PDF logo

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 TDebenuPDFLibrary1511.SaveFontToFile(FileName: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SaveFontToFile(FileName As String) As Long

DLL

int DPLSaveFontToFile(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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport