From ae0853d19ed7b5e5708995e399f8b678a4e1c58f Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Mon, 12 Feb 2018 18:29:57 +0000 Subject: Allow creation of FreeText annotations. Bug: pdfium:1011 Change-Id: Ie12595f321888c50ae74ab22bb147aef7e20f40d Reviewed-on: https://pdfium-review.googlesource.com/26390 Reviewed-by: dsinclair Commit-Queue: Henrique Nakashima --- fpdfsdk/fpdfannot.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'fpdfsdk') 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 -- cgit v1.2.3