1 #ifndef PDFPAGEREFERENCE_H 2 #define PDFPAGEREFERENCE_H 3 4 #include <QSharedPointer> 5 #include "poppler-qt.h" 6 #include "pdfdocumentreference.h" 7 8 /** This holds a reference to a page in a certain document 9 * WARNING: This also contains a shared pointer to the Poppler::Document, 10 * so if you delete this object, using the returned page() is undefined 11 * behaviour. 12 */ 13 struct PDFPageReference 14 { 15 const QSharedPointer<const Poppler::Document> document; 16 const QSharedPointer<const Poppler::Page> page; 17 18 19 PDFPageReference( const PDFDocumentReference& documentReference, const unsigned int& pageNumber ); 20 }; 21 22 #endif // PDFPAGEREFERENCE_H 23