X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FAnnot.h;h=e5fd8416e80d168044f21a3838e0f920ad82aa0a;hp=89dde0f90f17a012493b1998d4d69621a36d391d;hb=85c46a8011c7fd5e4bda282266006c972ea7606b;hpb=b0d012f83219d898e9cd92281d9996bc9ff13b5f diff --git a/pdf2swf/xpdf/Annot.h b/pdf2swf/xpdf/Annot.h index 89dde0f..e5fd841 100644 --- a/pdf2swf/xpdf/Annot.h +++ b/pdf2swf/xpdf/Annot.h @@ -16,6 +16,7 @@ #endif class XRef; +class Catalog; class Gfx; //------------------------------------------------------------------------ @@ -25,7 +26,7 @@ class Gfx; class Annot { public: - Annot(XRef *xrefA, Dict *dict); + Annot(XRef *xrefA, Dict *acroForm, Dict *dict); ~Annot(); GBool isOk() { return ok; } @@ -35,10 +36,13 @@ public: Object *getAppearance(Object *obj) { return appearance.fetch(xref, obj); } private: + + void generateAppearance(Dict *acroForm, Dict *dict); XRef *xref; // the xref table for this PDF file Object appearance; // a reference to the Form XObject stream // for the normal appearance + GString *appearBuf; double xMin, yMin, // annotation rectangle xMax, yMax; GBool ok; @@ -52,7 +56,7 @@ class Annots { public: // Extract non-link annotations from array of annotations. - Annots(XRef *xref, Object *annotsObj); + Annots(XRef *xref, Catalog *catalog, Object *annotsObj); ~Annots();