node-pdfutils
PdfPage.h
1 /*
2  * PdfPage.h
3  * Copyright (C) 2014 tox <tox@rootkit>
4  *
5  * Distributed under terms of the MIT license.
6  */
7 
8 #ifndef PDFPAGE_H
9 #define PDFPAGE_H
10 
11 class PdfEngine;
17 class PdfPage {
18 private:
19  PdfEngine *_engine;
20  int _index;
21  const char *_label;
22  double _width;
23  double _height;
24 
25 public:
29  PdfPage();
33  int index();
37  const char *label();
41  double width();
45  double height();
46 
50  void setIndex(const int indext);
54  void setLabel(const char *label);
58  void setWidth(const double width);
62  void setHeight(const double height);
63 };
64 
65 #endif /* !PDFPAGE_H */
const char * label()
label of this page
Definition: PdfPage.cpp:17
int index()
index of this page
Definition: PdfPage.cpp:14
void setIndex(const int indext)
sets index of this page
Definition: PdfPage.cpp:27
PdfPage()
constructor
Definition: PdfPage.cpp:10
void setLabel(const char *label)
sets label of this page
Definition: PdfPage.cpp:30
double width()
width of this page
Definition: PdfPage.cpp:20
double height()
height of this page
Definition: PdfPage.cpp:23
Class representation of a PDF-Page.
Definition: PdfPage.h:17
void setWidth(const double width)
sets width of this page
Definition: PdfPage.cpp:33
Base Class for interaction with a PDF-Engine such as Poppler.
Definition: PdfEngine.h:38
void setHeight(const double height)
sets height of this page
Definition: PdfPage.cpp:36