Fix bug 77904

This commit is contained in:
Svetlana Kulikova
2025-11-05 14:03:02 +03:00
parent cbb1df1522
commit d69a54de38

View File

@ -2187,6 +2187,11 @@ BYTE* CPdfReader::GetAPAnnots(int nRasterW, int nRasterH, int nBackgroundColor,
Object oAnnot, oObj;
std::string sType;
oAnnots.arrayGet(i, &oAnnot);
if (!oAnnot.isDict())
{
oAnnot.free();
continue;
}
if (oAnnot.dictLookup("Subtype", &oObj)->isName())
sType = oObj.getName();
oObj.free(); oAnnot.free();