PageAttrs Class Reference

#include <Page.h>


Public Member Functions

 PageAttrs (PageAttrs *attrs, Dict *dict)
 ~PageAttrs ()
PDFRectanglegetBox ()
PDFRectanglegetMediaBox ()
PDFRectanglegetCropBox ()
GBool isCropped ()
PDFRectanglegetBleedBox ()
PDFRectanglegetTrimBox ()
PDFRectanglegetArtBox ()
int getRotate ()
GStringgetLastModified ()
DictgetBoxColorInfo ()
DictgetGroup ()
StreamgetMetadata ()
DictgetPieceInfo ()
DictgetSeparationInfo ()
DictgetResourceDict ()

Private Member Functions

GBool readBox (Dict *dict, char *key, PDFRectangle *box)

Private Attributes

PDFRectangle mediaBox
PDFRectangle cropBox
GBool haveCropBox
GBool limitToCropBox
PDFRectangle bleedBox
PDFRectangle trimBox
PDFRectangle artBox
int rotate
Object lastModified
Object boxColorInfo
Object group
Object metadata
Object pieceInfo
Object separationInfo
Object resources


Detailed Description

Definition at line 42 of file Page.h.


Constructor & Destructor Documentation

PageAttrs::PageAttrs ( PageAttrs attrs,
Dict dict 
)

PageAttrs::~PageAttrs (  ) 


Member Function Documentation

PDFRectangle* PageAttrs::getBox (  )  [inline]

Definition at line 54 of file Page.h.

References cropBox, limitToCropBox, and mediaBox.

Referenced by Page::getBox(), Page::getHeight(), and Page::getWidth().

00054 { return limitToCropBox ? &cropBox : &mediaBox; }

PDFRectangle* PageAttrs::getMediaBox (  )  [inline]

Definition at line 55 of file Page.h.

References mediaBox.

Referenced by Page::getMediaBox().

00055 { return &mediaBox; }

PDFRectangle* PageAttrs::getCropBox (  )  [inline]

Definition at line 56 of file Page.h.

References cropBox.

Referenced by Page::getCropBox().

00056 { return &cropBox; }

GBool PageAttrs::isCropped (  )  [inline]

Definition at line 57 of file Page.h.

References haveCropBox.

Referenced by Page::isCropped().

00057 { return haveCropBox; }

PDFRectangle* PageAttrs::getBleedBox (  )  [inline]

Definition at line 58 of file Page.h.

References bleedBox.

Referenced by Page::getBleedBox().

00058 { return &bleedBox; }

PDFRectangle* PageAttrs::getTrimBox (  )  [inline]

Definition at line 59 of file Page.h.

References trimBox.

Referenced by Page::getTrimBox().

00059 { return &trimBox; }

PDFRectangle* PageAttrs::getArtBox (  )  [inline]

Definition at line 60 of file Page.h.

References artBox.

Referenced by Page::getArtBox().

00060 { return &artBox; }

int PageAttrs::getRotate (  )  [inline]

Definition at line 61 of file Page.h.

References rotate.

Referenced by Page::getRotate().

00061 { return rotate; }

GString* PageAttrs::getLastModified (  )  [inline]

Definition at line 62 of file Page.h.

References Object::getString(), Object::isString(), lastModified, and NULL.

Referenced by Page::getLastModified().

00063     { return lastModified.isString()
00064         ? lastModified.getString() : (GString *)NULL; }

Dict* PageAttrs::getBoxColorInfo (  )  [inline]

Definition at line 65 of file Page.h.

References boxColorInfo, Object::getDict(), Object::isDict(), and NULL.

Referenced by Page::getBoxColorInfo().

00066     { return boxColorInfo.isDict() ? boxColorInfo.getDict() : (Dict *)NULL; }

Dict* PageAttrs::getGroup (  )  [inline]

Definition at line 67 of file Page.h.

References Object::getDict(), group, Object::isDict(), and NULL.

Referenced by Page::getGroup().

00068     { return group.isDict() ? group.getDict() : (Dict *)NULL; }

Stream* PageAttrs::getMetadata (  )  [inline]

Definition at line 69 of file Page.h.

References Object::getStream(), Object::isStream(), metadata, and NULL.

Referenced by Page::getMetadata().

00070     { return metadata.isStream() ? metadata.getStream() : (Stream *)NULL; }

Dict* PageAttrs::getPieceInfo (  )  [inline]

Definition at line 71 of file Page.h.

References Object::getDict(), Object::isDict(), NULL, and pieceInfo.

Referenced by Page::getPieceInfo().

00072     { return pieceInfo.isDict() ? pieceInfo.getDict() : (Dict *)NULL; }

Dict* PageAttrs::getSeparationInfo (  )  [inline]

Definition at line 73 of file Page.h.

References Object::getDict(), Object::isDict(), NULL, and separationInfo.

Referenced by Page::getSeparationInfo().

00074     { return separationInfo.isDict()
00075         ? separationInfo.getDict() : (Dict *)NULL; }

Dict* PageAttrs::getResourceDict (  )  [inline]

Definition at line 76 of file Page.h.

References Object::getDict(), Object::isDict(), NULL, and resources.

Referenced by Page::getResourceDict().

00077     { return resources.isDict() ? resources.getDict() : (Dict *)NULL; }

GBool PageAttrs::readBox ( Dict dict,
char *  key,
PDFRectangle box 
) [private]


Field Documentation

PDFRectangle PageAttrs::mediaBox [private]

Definition at line 83 of file Page.h.

Referenced by getBox(), and getMediaBox().

PDFRectangle PageAttrs::cropBox [private]

Definition at line 84 of file Page.h.

Referenced by getBox(), and getCropBox().

GBool PageAttrs::haveCropBox [private]

Definition at line 85 of file Page.h.

Referenced by isCropped().

GBool PageAttrs::limitToCropBox [private]

Definition at line 86 of file Page.h.

Referenced by getBox().

PDFRectangle PageAttrs::bleedBox [private]

Definition at line 87 of file Page.h.

Referenced by getBleedBox().

PDFRectangle PageAttrs::trimBox [private]

Definition at line 88 of file Page.h.

Referenced by getTrimBox().

PDFRectangle PageAttrs::artBox [private]

Definition at line 89 of file Page.h.

Referenced by getArtBox().

int PageAttrs::rotate [private]

Definition at line 90 of file Page.h.

Referenced by getRotate().

Object PageAttrs::lastModified [private]

Definition at line 91 of file Page.h.

Referenced by getLastModified().

Object PageAttrs::boxColorInfo [private]

Definition at line 92 of file Page.h.

Referenced by getBoxColorInfo().

Object PageAttrs::group [private]

Definition at line 93 of file Page.h.

Referenced by getGroup().

Object PageAttrs::metadata [private]

Definition at line 94 of file Page.h.

Referenced by getMetadata().

Object PageAttrs::pieceInfo [private]

Definition at line 95 of file Page.h.

Referenced by getPieceInfo().

Object PageAttrs::separationInfo [private]

Definition at line 96 of file Page.h.

Referenced by getSeparationInfo().

Object PageAttrs::resources [private]

Definition at line 97 of file Page.h.

Referenced by getResourceDict().


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