summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-02-12 18:29:57 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-12 18:29:57 +0000
commitae0853d19ed7b5e5708995e399f8b678a4e1c58f (patch)
tree536f9405c9ef996d037e640c2cc23d810a5a75e2
parentc113c7aa67aac8ce597a1c15da065389bba36b9b (diff)
downloadpdfium-ae0853d19ed7b5e5708995e399f8b678a4e1c58f.tar.xz
Allow creation of FreeText annotations.
Bug: pdfium:1011 Change-Id: Ie12595f321888c50ae74ab22bb147aef7e20f40d Reviewed-on: https://pdfium-review.googlesource.com/26390 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
-rw-r--r--fpdfsdk/fpdfannot.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/fpdfsdk/fpdfannot.cpp b/fpdfsdk/fpdfannot.cpp
index 9b0cb39574..29a6751bff 100644
--- a/fpdfsdk/fpdfannot.cpp
+++ b/fpdfsdk/fpdfannot.cpp
@@ -199,11 +199,12 @@ void UpdateContentStream(CPDF_Form* pForm, CPDF_Stream* pStream) {
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
FPDFAnnot_IsSupportedSubtype(FPDF_ANNOTATION_SUBTYPE subtype) {
// The supported subtypes must also be communicated in the user doc.
- return subtype == FPDF_ANNOT_CIRCLE || subtype == FPDF_ANNOT_HIGHLIGHT ||
- subtype == FPDF_ANNOT_INK || subtype == FPDF_ANNOT_POPUP ||
- subtype == FPDF_ANNOT_SQUARE || subtype == FPDF_ANNOT_SQUIGGLY ||
- subtype == FPDF_ANNOT_STAMP || subtype == FPDF_ANNOT_STRIKEOUT ||
- subtype == FPDF_ANNOT_TEXT || subtype == FPDF_ANNOT_UNDERLINE;
+ return subtype == FPDF_ANNOT_CIRCLE || subtype == FPDF_ANNOT_FREETEXT ||
+ subtype == FPDF_ANNOT_HIGHLIGHT || subtype == FPDF_ANNOT_INK ||
+ subtype == FPDF_ANNOT_POPUP || subtype == FPDF_ANNOT_SQUARE ||
+ subtype == FPDF_ANNOT_SQUIGGLY || subtype == FPDF_ANNOT_STAMP ||
+ subtype == FPDF_ANNOT_STRIKEOUT || subtype == FPDF_ANNOT_TEXT ||
+ subtype == FPDF_ANNOT_UNDERLINE;
}
FPDF_EXPORT FPDF_ANNOTATION FPDF_CALLCONV