aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFAcroFormDocumentHelper.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-01-04 01:09:00 +0100
committerJay Berkenbilt <ejb@ql.org>2019-01-04 14:00:19 +0100
commit158156d5062a5ac335bcfde7893be4671affdc32 (patch)
tree20d0017133c845a85071473ceefcd2b6e186e472 /include/qpdf/QPDFAcroFormDocumentHelper.hh
parent02281632ccbba3ef00a6968bfd697f4be836d0dd (diff)
downloadqpdf-158156d5062a5ac335bcfde7893be4671affdc32.tar.zst
Add basic appearance stream generation
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,