#include <PDFDoc.h>
Public Member Functions | |
| PDFDoc (GString *fileNameA, GString *ownerPassword=NULL, GString *userPassword=NULL) | |
| PDFDoc (BaseStream *strA, GString *ownerPassword=NULL, GString *userPassword=NULL) | |
| ~PDFDoc () | |
| GBool | isOk () |
| int | getErrorCode () |
| GString * | getFileName () |
| XRef * | getXRef () |
| Catalog * | getCatalog () |
| BaseStream * | getBaseStream () |
| double | getPageWidth (int page) |
| double | getPageHeight (int page) |
| int | getPageRotate (int page) |
| int | getNumPages () |
| GString * | readMetadata () |
| Object * | getStructTreeRoot () |
| void | displayPage (OutputDev *out, int page, double hDPI, double vDPI, int rotate, GBool crop, GBool doLinks, GBool(*abortCheckCbk)(void *data)=NULL, void *abortCheckCbkData=NULL) |
| void | displayPages (OutputDev *out, int firstPage, int lastPage, double hDPI, double vDPI, int rotate, GBool crop, GBool doLinks, GBool(*abortCheckCbk)(void *data)=NULL, void *abortCheckCbkData=NULL) |
| void | displayPageSlice (OutputDev *out, int page, double hDPI, double vDPI, int rotate, GBool crop, int sliceX, int sliceY, int sliceW, int sliceH, GBool(*abortCheckCbk)(void *data)=NULL, void *abortCheckCbkData=NULL) |
| int | findPage (int num, int gen) |
| LinkAction * | findLink (double x, double y) |
| GBool | onLink (double x, double y) |
| LinkDest * | findDest (GString *name) |
| Outline * | getOutline () |
| GBool | isEncrypted () |
| GBool | okToPrint (GBool ignoreOwnerPW=gFalse) |
| GBool | okToChange (GBool ignoreOwnerPW=gFalse) |
| GBool | okToCopy (GBool ignoreOwnerPW=gFalse) |
| GBool | okToAddNotes (GBool ignoreOwnerPW=gFalse) |
| GBool | isLinearized () |
| Object * | getDocInfo (Object *obj) |
| Object * | getDocInfoNF (Object *obj) |
| double | getPDFVersion () |
| GBool | saveAs (GString *name) |
Private Member Functions | |
| GBool | setup (GString *ownerPassword, GString *userPassword) |
| void | checkHeader () |
| void | getLinks (Page *page) |
Private Attributes | |
| GString * | fileName |
| FILE * | file |
| BaseStream * | str |
| double | pdfVersion |
| XRef * | xref |
| Catalog * | catalog |
| Links * | links |
| Outline * | outline |
| GBool | ok |
| int | errCode |
Definition at line 36 of file PDFDoc.h.
| PDFDoc::PDFDoc | ( | GString * | fileNameA, | |
| GString * | ownerPassword = NULL, |
|||
| GString * | userPassword = NULL | |||
| ) |
| PDFDoc::PDFDoc | ( | BaseStream * | strA, | |
| GString * | ownerPassword = NULL, |
|||
| GString * | userPassword = NULL | |||
| ) |
| PDFDoc::~PDFDoc | ( | ) |
| GBool PDFDoc::isOk | ( | ) | [inline] |
| int PDFDoc::getErrorCode | ( | ) | [inline] |
| GString* PDFDoc::getFileName | ( | ) | [inline] |
| XRef* PDFDoc::getXRef | ( | ) | [inline] |
| Catalog* PDFDoc::getCatalog | ( | ) | [inline] |
| BaseStream* PDFDoc::getBaseStream | ( | ) | [inline] |
| double PDFDoc::getPageWidth | ( | int | page | ) | [inline] |
Definition at line 64 of file PDFDoc.h.
References catalog, Catalog::getPage(), and Page::getWidth().
| double PDFDoc::getPageHeight | ( | int | page | ) | [inline] |
Definition at line 66 of file PDFDoc.h.
References catalog, Page::getHeight(), and Catalog::getPage().
| int PDFDoc::getPageRotate | ( | int | page | ) | [inline] |
Definition at line 68 of file PDFDoc.h.
References catalog, Catalog::getPage(), and Page::getRotate().
| int PDFDoc::getNumPages | ( | ) | [inline] |
Definition at line 72 of file PDFDoc.h.
References catalog, and Catalog::getNumPages().
00072 { return catalog->getNumPages(); }
| GString* PDFDoc::readMetadata | ( | ) | [inline] |
Definition at line 76 of file PDFDoc.h.
References catalog, and Catalog::readMetadata().
00076 { return catalog->readMetadata(); }
| Object* PDFDoc::getStructTreeRoot | ( | ) | [inline] |
Definition at line 79 of file PDFDoc.h.
References catalog, and Catalog::getStructTreeRoot().
00079 { return catalog->getStructTreeRoot(); }
| void PDFDoc::displayPage | ( | OutputDev * | out, | |
| int | page, | |||
| double | hDPI, | |||
| double | vDPI, | |||
| int | rotate, | |||
| GBool | crop, | |||
| GBool | doLinks, | |||
| GBool(*)(void *data) | abortCheckCbk = NULL, |
|||
| void * | abortCheckCbkData = NULL | |||
| ) |
| void PDFDoc::displayPages | ( | OutputDev * | out, | |
| int | firstPage, | |||
| int | lastPage, | |||
| double | hDPI, | |||
| double | vDPI, | |||
| int | rotate, | |||
| GBool | crop, | |||
| GBool | doLinks, | |||
| GBool(*)(void *data) | abortCheckCbk = NULL, |
|||
| void * | abortCheckCbkData = NULL | |||
| ) |
| void PDFDoc::displayPageSlice | ( | OutputDev * | out, | |
| int | page, | |||
| double | hDPI, | |||
| double | vDPI, | |||
| int | rotate, | |||
| GBool | crop, | |||
| int | sliceX, | |||
| int | sliceY, | |||
| int | sliceW, | |||
| int | sliceH, | |||
| GBool(*)(void *data) | abortCheckCbk = NULL, |
|||
| void * | abortCheckCbkData = NULL | |||
| ) |
| int PDFDoc::findPage | ( | int | num, | |
| int | gen | |||
| ) | [inline] |
| LinkAction* PDFDoc::findLink | ( | double | x, | |
| double | y | |||
| ) | [inline] |
Definition at line 108 of file PDFDoc.h.
References Links::find(), links, and NULL.
00109 { return links ? links->find(x, y) : (LinkAction *)NULL; }
| GBool PDFDoc::onLink | ( | double | x, | |
| double | y | |||
| ) | [inline] |
| Outline* PDFDoc::getOutline | ( | ) | [inline] |
| GBool PDFDoc::isEncrypted | ( | ) | [inline] |
Definition at line 125 of file PDFDoc.h.
References XRef::isEncrypted(), and xref.
00125 { return xref->isEncrypted(); }
Definition at line 130 of file PDFDoc.h.
References XRef::okToChange(), and xref.
00131 { return xref->okToChange(ignoreOwnerPW); }
Definition at line 134 of file PDFDoc.h.
References XRef::okToAddNotes(), and xref.
00135 { return xref->okToAddNotes(ignoreOwnerPW); }
| GBool PDFDoc::isLinearized | ( | ) |
Definition at line 141 of file PDFDoc.h.
References XRef::getDocInfo(), NULL, and xref.
00141 { return xref != NULL ? xref->getDocInfo(obj) : NULL; }
Definition at line 142 of file PDFDoc.h.
References XRef::getDocInfoNF(), NULL, and xref.
00142 { return xref != NULL ? xref->getDocInfoNF(obj) : NULL; }
| double PDFDoc::getPDFVersion | ( | ) | [inline] |
| void PDFDoc::checkHeader | ( | ) | [private] |
| void PDFDoc::getLinks | ( | Page * | page | ) | [private] |
GString* PDFDoc::fileName [private] |
FILE* PDFDoc::file [private] |
BaseStream* PDFDoc::str [private] |
double PDFDoc::pdfVersion [private] |
XRef* PDFDoc::xref [private] |
Definition at line 161 of file PDFDoc.h.
Referenced by getDocInfo(), getDocInfoNF(), getXRef(), isEncrypted(), isOk(), okToAddNotes(), okToChange(), okToCopy(), and okToPrint().
Catalog* PDFDoc::catalog [private] |
Definition at line 162 of file PDFDoc.h.
Referenced by findDest(), findPage(), getCatalog(), getNumPages(), getPageHeight(), getPageRotate(), getPageWidth(), getStructTreeRoot(), and readMetadata().
Links* PDFDoc::links [private] |
Outline* PDFDoc::outline [private] |
GBool PDFDoc::ok [private] |
int PDFDoc::errCode [private] |
1.5.1