diff options
author | Martin Kretzschmar <mkretzschmar@src.gnome.org> | 2002-09-18 22:20:42 (GMT) |
---|---|---|
committer | Martin Kretzschmar <mkretzschmar@src.gnome.org> | 2002-09-18 22:20:42 (GMT) |
commit | 2a393c134fe3fe8eb85bf818cb7ad6ae4396322a (patch) | |
tree | eba8b0dcaba42d799ed8313faee15fb74a5a0cd2 /pdf/xpdf/Catalog.h | |
parent | 7aac8dc8533347e21311b15186e0af82f1b22fd6 (diff) |
Synched with Xpdf 1.01
Diffstat (limited to 'pdf/xpdf/Catalog.h')
-rw-r--r-- | pdf/xpdf/Catalog.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/pdf/xpdf/Catalog.h b/pdf/xpdf/Catalog.h index b0f3143..afad803 100644 --- a/pdf/xpdf/Catalog.h +++ b/pdf/xpdf/Catalog.h @@ -2,7 +2,7 @@ // // Catalog.h // -// Copyright 1996 Derek B. Noonburg +// Copyright 1996-2002 Glyph & Cog, LLC // //======================================================================== @@ -13,6 +13,7 @@ #pragma interface #endif +class XRef; class Object; class Page; class PageAttrs; @@ -27,7 +28,7 @@ class Catalog { public: // Constructor. - Catalog(Object *catDict); + Catalog(XRef *xrefA, GBool printCommands = gFalse); // Destructor. ~Catalog(); @@ -47,6 +48,13 @@ public: // Return base URI, or NULL if none. GString *getBaseURI() { return baseURI; } + // Return the contents of the metadata stream, or NULL if there is + // no metadata. + GString *readMetadata(); + + // Return the structure tree root object. + Object *getStructTreeRoot() { return &structTreeRoot; } + // Find a page, given its object ID. Returns page number, or 0 if // not found. int findPage(int num, int gen); @@ -57,6 +65,7 @@ public: private: + XRef *xref; // the xref table for this PDF file Page **pages; // array of pages Ref *pageRefs; // object ID for each page int numPages; // number of pages @@ -64,9 +73,12 @@ private: Object dests; // named destination dictionary Object nameTree; // name tree GString *baseURI; // base URI for URI-type links + Object metadata; // metadata stream + Object structTreeRoot; // structure tree root dictionary GBool ok; // true if catalog is valid - int readPageTree(Dict *pages, PageAttrs *attrs, int start); + int readPageTree(Dict *pages, PageAttrs *attrs, int start, + GBool printCommands); Object *findDestInTree(Object *tree, GString *name, Object *obj); }; |