node-pdfutils
PdfPageController.h
1 /*
2  * PdfPageController.h
3  * Copyright (C) 2014 tox <tox@rootkit>
4  *
5  * Distributed under terms of the MIT license.
6  */
7 
8 #ifndef PDFPAGECONTROLLER_H
9 #define PDFPAGECONTROLLER_H
10 
11 #include <v8.h>
12 #include <node.h>
13 #include <nan.h>
14 #include "PdfController.h"
15 #include "PdfPage.h"
16 
17 class PdfEngine;
24 private:
26  PdfPage *_page;
27 
28 public:
32  static void Init(v8::Handle<v8::Object> exports);
36  static NAN_METHOD(New);
40  static NAN_METHOD(As);
44  virtual void toJs();
48  virtual void fromJs();
52  PdfPage *page();
56  void setPage(PdfPage *);
57 };
58 
59 #endif /* !PDFPAGECONTROLLER_H */
virtual void fromJs()
reads state of this object from a JS-Object
Definition: PdfPageController.cpp:50
virtual void toJs()
writes state of this object to a JS-Object
Definition: PdfPageController.cpp:42
PdfController()
Constructor for v8.
Definition: PdfController.h:28
Class representation of a PDF-Page.
Definition: PdfPageController.h:23
void setPage(PdfPage *)
sets model of this page
Definition: PdfPageController.cpp:64
static NAN_METHOD(New)
generates new object from v8
static void Init(v8::Handle< v8::Object > exports)
exports this class to v8
Definition: PdfPageController.cpp:14
Class representation of a PDF-Page.
Definition: PdfPage.h:17
PdfPage * page()
page
Definition: PdfPageController.cpp:60
Base Class for interaction with a PDF-Engine such as Poppler.
Definition: PdfEngine.h:38
Class representation of a PDF-Controller.
Definition: PdfController.h:23