1 //========================================================================
5 // Copyright 1996 Derek B. Noonburg
7 //========================================================================
22 //------------------------------------------------------------------------
24 //------------------------------------------------------------------------
30 Catalog(Object *catDict);
36 GBool isOk() { return ok; }
38 // Get number of pages.
39 int getNumPages() { return numPages; }
42 Page *getPage(int i) { return pages[i-1]; }
44 // Find a page, given its object ID. Returns page number, or 0 if
46 int findPage(int num, int gen);
48 // Find a named destination. Returns the link destination, or
49 // NULL if <name> is not a destination.
50 LinkDest *findDest(GString *name);
54 Page **pages; // array of pages
55 Ref *pageRefs; // object ID for each page
56 int numPages; // number of pages
57 Object dests; // named destination dictionary
58 Object nameTree; // name tree
59 GBool ok; // true if catalog is valid
61 int readPageTree(Dict *pages, PageAttrs *attrs, int start);
62 Object *findDestInTree(Object *tree, GString *name, Object *obj);