mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +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();
|
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
|
// 20 - Шрифт, размер, цвет текста замены - DA
|
||||||
if (oAnnot.dictLookup("DA", &oObj)->isString())
|
if (oAnnot.dictLookup("DA", &oObj)->isString())
|
||||||
{
|
{
|
||||||
@ -2519,14 +2527,6 @@ CAnnotRedact::CAnnotRedact(PDFDoc* pdfDoc, Object* oAnnotRef, int nPageIndex, in
|
|||||||
}
|
}
|
||||||
oObj.free();
|
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;
|
Object oAP, oN;
|
||||||
if (!oAnnot.dictLookup("RO", &oN)->isStream())
|
if (!oAnnot.dictLookup("RO", &oN)->isStream())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user