39 PDFDoc(GString *fileNameA, GString *ownerPassword = NULL,
40 GString *userPassword = NULL);
41 PDFDoc(BaseStream *strA, GString *ownerPassword = NULL,
42 GString *userPassword = NULL);
46 GBool isOk() {
return ok; }
49 int getErrorCode() {
return errCode; }
52 GString *getFileName() {
return fileName; }
55 XRef *getXRef() {
return xref; }
58 Catalog *getCatalog() {
return catalog; }
61 BaseStream *getBaseStream() {
return str; }
64 double getPageWidth(
int page)
65 {
return catalog->getPage(page)->getWidth(); }
66 double getPageHeight(
int page)
67 {
return catalog->getPage(page)->getHeight(); }
68 int getPageRotate(
int page)
69 {
return catalog->getPage(page)->getRotate(); }
72 int getNumPages() {
return catalog->getNumPages(); }
76 GString *readMetadata() {
return catalog->readMetadata(); }
79 Object *getStructTreeRoot() {
return catalog->getStructTreeRoot(); }
82 void displayPage(OutputDev *out,
int page,
double zoom,
83 int rotate, GBool doLinks,
84 GBool (*abortCheckCbk)(
void *data) = NULL,
85 void *abortCheckCbkData = NULL);
88 void displayPages(OutputDev *out,
int firstPage,
int lastPage,
89 int zoom,
int rotate, GBool doLinks,
90 GBool (*abortCheckCbk)(
void *data) = NULL,
91 void *abortCheckCbkData = NULL);
94 void displayPageSlice(OutputDev *out,
int page,
double zoom,
95 int rotate,
int sliceX,
int sliceY,
96 int sliceW,
int sliceH,
97 GBool (*abortCheckCbk)(
void *data) = NULL,
98 void *abortCheckCbkData = NULL);
102 int findPage(
int num,
int gen) {
return catalog->findPage(num, gen); }
106 LinkAction *findLink(
double x,
double y) {
return links->find(x, y); }
109 GBool onLink(
double x,
double y) {
return links->onLink(x, y); }
113 LinkDest *findDest(GString *name)
114 {
return catalog->findDest(name); }
116#ifndef DISABLE_OUTLINE
118 Outline *getOutline() {
return outline; }
122 GBool isEncrypted() {
return xref->isEncrypted(); }
125 GBool okToPrint(GBool ignoreOwnerPW = gFalse)
126 {
return xref->okToPrint(ignoreOwnerPW); }
127 GBool okToChange(GBool ignoreOwnerPW = gFalse)
128 {
return xref->okToChange(ignoreOwnerPW); }
129 GBool okToCopy(GBool ignoreOwnerPW = gFalse)
130 {
return xref->okToCopy(ignoreOwnerPW); }
131 GBool okToAddNotes(GBool ignoreOwnerPW = gFalse)
132 {
return xref->okToAddNotes(ignoreOwnerPW); }
135 GBool isLinearized();
138 Object *getDocInfo(Object *obj) {
return xref->getDocInfo(obj); }
139 Object *getDocInfoNF(Object *obj) {
return xref->getDocInfoNF(obj); }
142 double getPDFVersion() {
return pdfVersion; }
145 GBool saveAs(GString *name);
150 GBool setup(GString *ownerPassword, GString *userPassword);
152 void getLinks(Page *page);
161#ifndef DISABLE_OUTLINE