Actions/outline basics

This commit is contained in:
Jakub Melka
2019-11-17 17:41:07 +01:00
parent 84d9b58476
commit 2a11fa18e0
10 changed files with 998 additions and 0 deletions

View File

@ -326,6 +326,10 @@ public:
/// is returned (no exception is thrown).
const PDFObject& getObject(const PDFObject& object) const;
/// Returns object by reference. If dereference attempt fails, then null object
/// is returned (no exception is thrown).
const PDFObject& getObjectByReference(PDFObjectReference reference) const;
/// Returns the document catalog
const PDFCatalog* getCatalog() const { return &m_catalog; }
@ -379,6 +383,12 @@ const PDFObject& PDFDocument::getObject(const PDFObject& object) const
return object;
}
inline
const PDFObject& PDFDocument::getObjectByReference(PDFObjectReference reference) const
{
return m_pdfObjectStorage.getObject(reference);
}
} // namespace pdf
#endif // PDFDOCUMENT_H