1 //========================================================================
5 // Copyright 2000-2003 Glyph & Cog, LLC
7 //========================================================================
14 #ifdef USE_GCC_PRAGMAS
21 //------------------------------------------------------------------------
23 //------------------------------------------------------------------------
28 Annot(XRef *xrefA, Dict *dict);
30 GBool isOk() { return ok; }
34 // Get appearance object.
35 Object *getAppearance(Object *obj) { return appearance.fetch(xref, obj); }
38 Object *getSubtype(Object *obj) {return subtype.copy(obj); };
41 Dict *getDict() {return dict; };
43 // Get annot appearance ID
44 int getRefNum() {return appearance.getRefNum();};
45 int getRefGen() {return appearance.getRefGen();};
49 XRef *xref; // the xref table for this PDF file
52 Object appearance; // a reference to the Form XObject stream
53 // for the normal appearance
54 double xMin, yMin, // annotation rectangle
59 //------------------------------------------------------------------------
61 //------------------------------------------------------------------------
66 // Extract non-link annotations from array of annotations.
67 Annots(XRef *xref, Object *annotsObj);
71 // Iterate through list of annotations.
72 int getNumAnnots() { return nAnnots; }
73 Annot *getAnnot(int i) { return annots[i]; }