mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix DA in SetFont
This commit is contained in:
@ -2481,6 +2481,14 @@ CAnnotRedact::CAnnotRedact(PDFDoc* pdfDoc, Object* oAnnotRef, int nPageIndex, in
|
||||
}
|
||||
oObj.free();
|
||||
|
||||
oAnnot.free();
|
||||
}
|
||||
void CAnnotRedact::SetFont(PDFDoc* pdfDoc, NSFonts::IFontManager* pFontManager, CPdfFontList *pFontList, Object* oAnnotRef)
|
||||
{
|
||||
Object oAnnot, oObj;
|
||||
XRef* pXref = pdfDoc->getXRef();
|
||||
oAnnotRef->fetch(pXref, &oAnnot);
|
||||
|
||||
// 20 - Шрифт, размер, цвет текста замены - DA
|
||||
if (oAnnot.dictLookup("DA", &oObj)->isString())
|
||||
{
|
||||
@ -2519,14 +2527,6 @@ CAnnotRedact::CAnnotRedact(PDFDoc* pdfDoc, Object* oAnnotRef, int nPageIndex, in
|
||||
}
|
||||
oObj.free();
|
||||
|
||||
oAnnot.free();
|
||||
}
|
||||
void CAnnotRedact::SetFont(PDFDoc* pdfDoc, NSFonts::IFontManager* pFontManager, CPdfFontList *pFontList, Object* oAnnotRef)
|
||||
{
|
||||
Object oAnnot, oObj;
|
||||
XRef* pXref = pdfDoc->getXRef();
|
||||
oAnnotRef->fetch(pXref, &oAnnot);
|
||||
|
||||
Object oAP, oN;
|
||||
if (!oAnnot.dictLookup("RO", &oN)->isStream())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user