FPDF_InitLibrary(NULL);
/*
CFX_FolderFontInfo sysfont;
CFX_FontMapper fontmap;
CFX_Font myfont;
IFX_SystemFontInfo *isysfont = NULL;
IFX_FontMapper *ifontmap = NULL;
CFX_FontMgr fontmgr;
fontmgr.InitFTLibrary();
fontmgr.m_pExtMapper = new CFX_FontMapper();
fontmgr.m_pExtMapper->m_pFontMgr = &fontmgr;
*/
FPDF_DOCUMENT outdoc;
// string inpdf = "/home/lyd/work/gnpdf/441.pdf";
// outdoc = FPDF_CreateNewDocument();
// CPDF_Document* cpdf_doc_ = CPDFDocumentFromFPDFDocument(outdoc);
// const CPDF_Font* stock_font = CPDF_Font::GetStockFont(cpdf_doc_, "sysfFS"); //SimSun
// int type = stock_font->GetFontType();
pdfium例子
于 2024-08-02 06:37:21 首次发布