#2
iswith2023-10-21 13:54
|
如题。
翻阅资料时发现,这个函数不知道怎么申明第三个参数,
Declare String HPDF_LoadTTFontFromFile In libhpdf.dll Integer hpdf, String filename, integer embedding
第三个参数应该是个逻辑值吧?
HPDF_LoadTTFontFromFile
#include "apdf.h"
const char*
HPDF_LoadTTFontFromFile (HPDF_Doc pdf,
const char *file_name,
HPDF_BOOL embedding);
Description
HPDF_LoadTTFontFromFile loads a TrueType font from an external file and register it to a document object. (See "Fonts and Encodings")
Parameter
pdf
Specify the handle of a document object.
file_name
A path of a TrueType font file (.ttf).
embedding
If this parameter is set to HPDF_TRUE, the glyph data of the font is embedded, otherwise only the matrix data is included in PDF file.
Returns
When HPDF_LoadTTFontFromFile() succeeds, it returns the name of a font. Otherwise, it returns NULL and error-handler is called.