From 5731a95c0c072dabe28346e79b1116be05062738 Mon Sep 17 00:00:00 2001 From: Anuj Khare Date: Thu, 24 Jul 2014 19:47:36 +0200 Subject: [PATCH 3/4] core: Expose AnnotFreeText::parseAppearanceString The frontends need to parse the DA string of the free text annotations to get the font size and color of the text. This function is made public to avoid the repeated effort. --- poppler/Annot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poppler/Annot.h b/poppler/Annot.h index 8fde6a6..df01ab0 100644 --- a/poppler/Annot.h +++ b/poppler/Annot.h @@ -933,6 +933,7 @@ public: // getters GooString *getAppearanceString() const { return appearanceString; } AnnotFreeTextQuadding getQuadding() const { return quadding; } + void parseAppearanceString(GooString *da, double &fontsize, AnnotColor* &fontcolor); // return rc GooString *getStyleString() const { return styleString; } AnnotCalloutLine *getCalloutLine() const { return calloutLine; } @@ -944,7 +945,6 @@ public: protected: void initialize(PDFDoc *docA, Dict *dict); - static void parseAppearanceString(GooString *da, double &fontsize, AnnotColor* &fontcolor); void generateFreeTextAppearance(); // required -- 1.9.1