Page Class Reference

#include <Page.h>


Public Member Functions

 Page (XRef *xrefA, int numA, Dict *pageDict, PageAttrs *attrsA)
 ~Page ()
GBool isOk ()
PDFRectanglegetBox ()
PDFRectanglegetMediaBox ()
PDFRectanglegetCropBox ()
GBool isCropped ()
double getWidth ()
double getHeight ()
PDFRectanglegetBleedBox ()
PDFRectanglegetTrimBox ()
PDFRectanglegetArtBox ()
int getRotate ()
GStringgetLastModified ()
DictgetBoxColorInfo ()
DictgetGroup ()
StreamgetMetadata ()
DictgetPieceInfo ()
DictgetSeparationInfo ()
DictgetResourceDict ()
ObjectgetAnnots (Object *obj)
ObjectgetContents (Object *obj)
void display (OutputDev *out, double hDPI, double vDPI, int rotate, GBool crop, Links *links, Catalog *catalog, GBool(*abortCheckCbk)(void *data)=NULL, void *abortCheckCbkData=NULL)
void displaySlice (OutputDev *out, double hDPI, double vDPI, int rotate, GBool crop, int sliceX, int sliceY, int sliceW, int sliceH, Links *links, Catalog *catalog, GBool(*abortCheckCbk)(void *data)=NULL, void *abortCheckCbkData=NULL)

Private Attributes

XRefxref
int num
PageAttrsattrs
Object annots
Object contents
GBool ok


Detailed Description

Definition at line 104 of file Page.h.


Constructor & Destructor Documentation

Page::Page ( XRef xrefA,
int  numA,
Dict pageDict,
PageAttrs attrsA 
)

Page::~Page (  ) 


Member Function Documentation

GBool Page::isOk (  )  [inline]

Definition at line 114 of file Page.h.

References ok.

00114 { return ok; }

PDFRectangle* Page::getBox (  )  [inline]

Definition at line 117 of file Page.h.

References attrs, and PageAttrs::getBox().

00117 { return attrs->getBox(); }

PDFRectangle* Page::getMediaBox (  )  [inline]

Definition at line 118 of file Page.h.

References attrs, and PageAttrs::getMediaBox().

00118 { return attrs->getMediaBox(); }

PDFRectangle* Page::getCropBox (  )  [inline]

Definition at line 119 of file Page.h.

References attrs, and PageAttrs::getCropBox().

00119 { return attrs->getCropBox(); }

GBool Page::isCropped (  )  [inline]

Definition at line 120 of file Page.h.

References attrs, and PageAttrs::isCropped().

00120 { return attrs->isCropped(); }

double Page::getWidth (  )  [inline]

Definition at line 121 of file Page.h.

References attrs, PageAttrs::getBox(), PDFRectangle::x1, and PDFRectangle::x2.

Referenced by PDFDoc::getPageWidth().

00121 { return attrs->getBox()->x2 - attrs->getBox()->x1; }

double Page::getHeight (  )  [inline]

Definition at line 122 of file Page.h.

References attrs, PageAttrs::getBox(), PDFRectangle::y1, and PDFRectangle::y2.

Referenced by PDFDoc::getPageHeight().

00122 { return attrs->getBox()->y2 - attrs->getBox()->y1; }

PDFRectangle* Page::getBleedBox (  )  [inline]

Definition at line 123 of file Page.h.

References attrs, and PageAttrs::getBleedBox().

00123 { return attrs->getBleedBox(); }

PDFRectangle* Page::getTrimBox (  )  [inline]

Definition at line 124 of file Page.h.

References attrs, and PageAttrs::getTrimBox().

00124 { return attrs->getTrimBox(); }

PDFRectangle* Page::getArtBox (  )  [inline]

Definition at line 125 of file Page.h.

References attrs, and PageAttrs::getArtBox().

00125 { return attrs->getArtBox(); }

int Page::getRotate (  )  [inline]

Definition at line 126 of file Page.h.

References attrs, and PageAttrs::getRotate().

Referenced by PDFDoc::getPageRotate().

00126 { return attrs->getRotate(); }

GString* Page::getLastModified (  )  [inline]

Definition at line 127 of file Page.h.

References attrs, and PageAttrs::getLastModified().

00127 { return attrs->getLastModified(); }

Dict* Page::getBoxColorInfo (  )  [inline]

Definition at line 128 of file Page.h.

References attrs, and PageAttrs::getBoxColorInfo().

00128 { return attrs->getBoxColorInfo(); }

Dict* Page::getGroup (  )  [inline]

Definition at line 129 of file Page.h.

References attrs, and PageAttrs::getGroup().

00129 { return attrs->getGroup(); }

Stream* Page::getMetadata (  )  [inline]

Definition at line 130 of file Page.h.

References attrs, and PageAttrs::getMetadata().

00130 { return attrs->getMetadata(); }

Dict* Page::getPieceInfo (  )  [inline]

Definition at line 131 of file Page.h.

References attrs, and PageAttrs::getPieceInfo().

00131 { return attrs->getPieceInfo(); }

Dict* Page::getSeparationInfo (  )  [inline]

Definition at line 132 of file Page.h.

References attrs, and PageAttrs::getSeparationInfo().

00132 { return attrs->getSeparationInfo(); }

Dict* Page::getResourceDict (  )  [inline]

Definition at line 135 of file Page.h.

References attrs, and PageAttrs::getResourceDict().

00135 { return attrs->getResourceDict(); }

Object* Page::getAnnots ( Object obj  )  [inline]

Definition at line 138 of file Page.h.

References annots, Object::fetch(), and xref.

00138 { return annots.fetch(xref, obj); }

Object* Page::getContents ( Object obj  )  [inline]

Definition at line 141 of file Page.h.

References contents, Object::fetch(), and xref.

00141 { return contents.fetch(xref, obj); }

void Page::display ( OutputDev *  out,
double  hDPI,
double  vDPI,
int  rotate,
GBool  crop,
Links links,
Catalog catalog,
GBool(*)(void *data)  abortCheckCbk = NULL,
void *  abortCheckCbkData = NULL 
)

void Page::displaySlice ( OutputDev *  out,
double  hDPI,
double  vDPI,
int  rotate,
GBool  crop,
int  sliceX,
int  sliceY,
int  sliceW,
int  sliceH,
Links links,
Catalog catalog,
GBool(*)(void *data)  abortCheckCbk = NULL,
void *  abortCheckCbkData = NULL 
)


Field Documentation

XRef* Page::xref [private]

Definition at line 160 of file Page.h.

Referenced by getAnnots(), and getContents().

int Page::num [private]

Definition at line 161 of file Page.h.

PageAttrs* Page::attrs [private]

Definition at line 162 of file Page.h.

Referenced by getArtBox(), getBleedBox(), getBox(), getBoxColorInfo(), getCropBox(), getGroup(), getHeight(), getLastModified(), getMediaBox(), getMetadata(), getPieceInfo(), getResourceDict(), getRotate(), getSeparationInfo(), getTrimBox(), getWidth(), and isCropped().

Object Page::annots [private]

Definition at line 163 of file Page.h.

Referenced by getAnnots().

Object Page::contents [private]

Definition at line 164 of file Page.h.

Referenced by getContents().

GBool Page::ok [private]

Definition at line 165 of file Page.h.

Referenced by isOk().


The documentation for this class was generated from the following file:
Generated on Fri Jan 9 16:45:41 2009 for libextractor by  doxygen 1.5.1