mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Actions/outline basics
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user