-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocument.h
53 lines (43 loc) · 1021 Bytes
/
Document.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* File: Document.h
* Author: scribble
*
* Created on January 28, 2013, 7:50 PM
*/
#ifndef DOCUMENT_H
#define DOCUMENT_H
#include <poppler/cpp/poppler-document.h>
#include <poppler/cpp/poppler-page.h>
#include <poppler/cpp/poppler-page-renderer.h>
#include <poppler/cpp/poppler-image.h>
#include "defines.h"
#include <string>
using namespace poppler;
class Document {
public:
Document();
Document(int x_, int y_, int w_, int h_);
Document(const Document& orig);
virtual ~Document();
int getNumberOfPages();
int getCurrentPage();
image* getImage();
int getX();
int getY();
void changePage(int page);
void load(std::string file);
private:
document *pdf;
page *pdfPage;
image *renderedImage;
page_renderer *renderer;
std::string fileName;
int numberOfPages;
int currentPage;
int width;
int height;
int x;
int y;
//#warning //could move all paths to here to save them later
};
#endif /* DOCUMENT_H */