From f2997fd226b070703dd15be8a159d4d11eeb1753 Mon Sep 17 00:00:00 2001 From: Remi Cohen-Scali Date: Mon, 12 Jan 2004 19:32:08 +0000 Subject: Added getSubtype, getDict and getRefNum/Gen methods for easier annots 2004-01-12 Remi Cohen-Scali * xpdf/Annot.h: Added getSubtype, getDict and getRefNum/Gen methods for easier annots identification. Added dict & subtype fields. --- diff --git a/pdf/xpdf/Annot.h b/pdf/xpdf/Annot.h index 89dde0f..092b613 100644 --- a/pdf/xpdf/Annot.h +++ b/pdf/xpdf/Annot.h @@ -34,9 +34,21 @@ public: // Get appearance object. Object *getAppearance(Object *obj) { return appearance.fetch(xref, obj); } + // Get subtype object + Object *getSubtype(Object *obj) {return subtype.copy(obj); }; + + // Get dictionary + Dict *getDict() {return dict; }; + + // Get annot appearance ID + int getRefNum() {return appearance.getRefNum();}; + int getRefGen() {return appearance.getRefGen();}; + private: XRef *xref; // the xref table for this PDF file + Dict *dict; + Object subtype; Object appearance; // a reference to the Form XObject stream // for the normal appearance double xMin, yMin, // annotation rectangle -- cgit v0.9.1