diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-02-18 17:18:24 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-02-18 18:25:48 +0100 |
commit | de8929a41ce093a0c21ca48b2342a73cf67a51f0 (patch) | |
tree | 929a3aa71f51d032e8ad898ab71440c81a0f3bf5 /include | |
parent | 5cec6b4c3df09b59464c9a492b60b86ffd0d5311 (diff) | |
download | qpdf-de8929a41ce093a0c21ca48b2342a73cf67a51f0.tar.zst |
Add QPDFAcroFormDocumentHelper::addFormField
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFAcroFormDocumentHelper.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QPDFAcroFormDocumentHelper.hh b/include/qpdf/QPDFAcroFormDocumentHelper.hh index 2c22a5da..d417fc08 100644 --- a/include/qpdf/QPDFAcroFormDocumentHelper.hh +++ b/include/qpdf/QPDFAcroFormDocumentHelper.hh @@ -106,6 +106,13 @@ class QPDFAcroFormDocumentHelper: public QPDFDocumentHelper bool hasAcroForm(); + // Add a form field, initializing the document's AcroForm + // dictionary if needed. Calling this method invalidates the + // cache, which makes it possible to add a field that is not yet + // associated with an annotation or page. + QPDF_DLL + void addFormField(QPDFFormFieldObjectHelper); + // Return a vector of all terminal fields in a document. Terminal // fields are fields that have no children that are also fields. // Terminal fields may still have children that are annotations. |