From c4faf1b7419a4502b260123abf7e4abac1a19587 Mon Sep 17 00:00:00 2001 From: Anuj Khare Date: Wed, 23 Jul 2014 07:18:27 +0200 Subject: [PATCH] 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