From 073de2570304aade0f69823198dec839fc8cdfdd Mon Sep 17 00:00:00 2001 From: Anuj Khare Date: Sun, 27 Jul 2014 08:04:41 +0200 Subject: [PATCH 1/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