aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFAcroFormDocumentHelper.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/QPDFAcroFormDocumentHelper.hh')
-rw-r--r--include/qpdf/QPDFAcroFormDocumentHelper.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/qpdf/QPDFAcroFormDocumentHelper.hh b/include/qpdf/QPDFAcroFormDocumentHelper.hh
index 3a308467..281056b9 100644
--- a/include/qpdf/QPDFAcroFormDocumentHelper.hh
+++ b/include/qpdf/QPDFAcroFormDocumentHelper.hh
@@ -157,6 +157,16 @@ class QPDFAcroFormDocumentHelper: public QPDFDocumentHelper
QPDF_DLL
void setNeedAppearances(bool);
+ // If /NeedAppearances is false, do nothing. Otherwise generate
+ // appearance streams for all widget annotations that need them.
+ // See comments in QPDFFormFieldObjectHelper.hh for
+ // generateAppearance for limitations. For checkbox and radio
+ // button fields, this code ensures that appearance state is
+ // consistent with the field's value and uses any pre-existing
+ // appearance streams.
+ QPDF_DLL
+ void generateAppearancesIfNeeded();
+
private:
void analyze();
void traverseField(QPDFObjectHandle field,