mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Tool for gathering info about document
This commit is contained in:
@ -1120,4 +1120,17 @@ PDFDocumentRequirements::RequirementEntry PDFDocumentRequirements::RequirementEn
|
||||
return entry;
|
||||
}
|
||||
|
||||
PDFPageAdditionalActions PDFPageAdditionalActions::parse(const PDFObjectStorage* storage, PDFObject object)
|
||||
{
|
||||
PDFPageAdditionalActions result;
|
||||
|
||||
if (const PDFDictionary* dictionary = storage->getDictionaryFromObject(object))
|
||||
{
|
||||
result.m_actions[Open] = PDFAction::parse(storage, dictionary->get("O"));
|
||||
result.m_actions[Close] = PDFAction::parse(storage, dictionary->get("C"));
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace pdf
|
||||
|
Reference in New Issue
Block a user