mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-10 23:03:14 +08:00
Fix buf 80240
This commit is contained in:
@ -4385,6 +4385,11 @@ void CPdfEditor::ScanAndProcessFonts(PDFDoc* pPDFDocument, XRef* xref, Dict* pRe
|
||||
}
|
||||
m_pWriter->AddFont(L"Embedded: " + wsFontName, false, false, wsFileName, 0);
|
||||
PdfWriter::CObjectBase* pObj = m_mObjManager.GetObj(nFontRef.num);
|
||||
if (!pObj)
|
||||
{
|
||||
pObj = new PdfWriter::CObjectBase();
|
||||
pObj->SetRef(nFontRef.num, nFontRef.gen);
|
||||
}
|
||||
m_pWriter->GetDocument()->CreateFontEmbedded(wsFileName, 0, sFontKey, static_cast<PdfWriter::EFontType>(gfxFont->getType()), pObj, mCodeToWidth, mCodeToUnicode, mCodeToGID);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user