Read and write image ref for OShapes

This commit is contained in:
Svetlana Kulikova
2024-05-20 17:52:22 +03:00
parent 84cb59d7b2
commit fac976a22e
10 changed files with 119 additions and 20 deletions

View File

@ -1656,7 +1656,7 @@ BYTE* CPdfReader::GetShapes(int nPageIndex)
Object oProperties, oMetaOForm, oID;
XRef* xref = m_pPDFDocument->getXRef();
if (!pResources->lookup("Properties", &oProperties)->isDict() || !oProperties.dictLookup("MetaOForm", &oMetaOForm)->isDict("MetaOForm") || !oMetaOForm.dictLookup("ID", &oID)->isString())
if (!pResources->lookup("Properties", &oProperties)->isDict() || !oProperties.dictLookup("OShapes", &oMetaOForm)->isDict("OShapes") || !oMetaOForm.dictLookup("ID", &oID)->isString())
{
oProperties.free(); oMetaOForm.free(); oID.free();
return NULL;