Fix DR and develop Actions

This commit is contained in:
Svetlana Kulikova
2023-10-24 17:58:13 +03:00
parent 9e945d6d1b
commit f91bedcb5c
8 changed files with 191 additions and 48 deletions

View File

@ -413,6 +413,7 @@ PdfWriter::CDictObject* GetAcroForm(Object* oAcroForm)
if (strcmp("DR", chKey) == 0)
{
oAcroForm->dictGetVal(nIndex, &oTemp2);
/*
if (!oTemp2.isDict())
{
oTemp2.free();
@ -427,8 +428,10 @@ PdfWriter::CDictObject* GetAcroForm(Object* oAcroForm)
}
oTemp2.free();
continue;
*/
}
oAcroForm->dictGetValNF(nIndex, &oTemp2);
else
oAcroForm->dictGetValNF(nIndex, &oTemp2);
DictToCDictObject(&oTemp2, pAcroForm, false, chKey);
oTemp2.free();
}