-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPdfPage.h
More file actions
33 lines (25 loc) · 707 Bytes
/
Copy pathPdfPage.h
File metadata and controls
33 lines (25 loc) · 707 Bytes
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
#ifndef NODE_PODOFO_PDF_PAGE_H
#define NODE_PODOFO_PDF_PAGE_H
#include <node.h>
#include <node_object_wrap.h>
#include "nan.h"
#include "podofo.h"
class PdfPage : public node::ObjectWrap {
public:
static Nan::Persistent<v8::FunctionTemplate> constructor_template;
static void Init(v8::Handle<v8::Object> exports);
PoDoFo::PdfPage* Unwrap();
private:
static NAN_METHOD(New);
static NAN_METHOD(GetPageNumber);
// Inherited from PdfCanvas
static NAN_METHOD(GetContents);
static NAN_METHOD(GetResources);
// Inherited from PdfElement
static NAN_METHOD(GetObject);
explicit PdfPage(PoDoFo::PdfPage* obj);
~PdfPage();
PoDoFo::PdfPage* _obj;
bool _objFromElsewhere;
};
#endif