File: pdfpagereference.h

package info (click to toggle)
dspdfviewer 1.15.1%2Bgit20230427.d432d8d-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 924 kB
  • sloc: cpp: 2,303; makefile: 22; sh: 7
file content (22 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef PDFPAGEREFERENCE_H
#define PDFPAGEREFERENCE_H

#include <QSharedPointer>
#include "poppler-qt.h"
#include "pdfdocumentreference.h"

/** This holds a reference to a page in a certain document
 * WARNING: This also contains a shared pointer to the Poppler::Document,
 * so if you delete this object, using the returned page() is undefined
 * behaviour.
 */
struct PDFPageReference
{
  const QSharedPointer<const Poppler::Document> document;
  const QSharedPointer<const Poppler::Page> page;


  PDFPageReference( const PDFDocumentReference& documentReference, const unsigned int& pageNumber );
};

#endif // PDFPAGEREFERENCE_H