38 XRef(BaseStream *strA, GString *ownerPassword, GString *userPassword);
44 GBool isOk() { return ok; }
47 int getErrorCode() { return errCode; }
51 GBool isEncrypted() { return encrypted; }
53 GBool isEncrypted() { return gFalse; }
57 GBool okToPrint(GBool ignoreOwnerPW = gFalse);
58 GBool okToChange(GBool ignoreOwnerPW = gFalse);
59 GBool okToCopy(GBool ignoreOwnerPW = gFalse);
60 GBool okToAddNotes(GBool ignoreOwnerPW = gFalse);
63 Object *getCatalog(Object *obj) { return fetch(rootNum, rootGen, obj); }
66 Object *fetch( int num, int gen, Object *obj);
69 Object *getDocInfo(Object *obj);
70 Object *getDocInfoNF(Object *obj);
73 int getNumObjects() { return size; }
76 Guint getLastXRefPos() { return lastXRefPos; }
79 int getRootNum() { return rootNum; }
80 int getRootGen() { return rootGen; }
84 GBool getStreamEnd(Guint streamStart, Guint *streamEnd);
87 int getSize() { return size; }
88 XRefEntry *getEntry( int i) { return &entries[i]; }
89 Object *getTrailerDict() { return &trailerDict; }
113 GBool ownerPasswordOk;
117 GBool readXRef(Guint *pos);
118 GBool constructXRef();
119 GBool checkEncrypted(GString *ownerPassword, GString *userPassword);
120 Guint strToUnsigned( char *s);
|