From de8929a41ce093a0c21ca48b2342a73cf67a51f0 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 18 Feb 2021 11:18:24 -0500 Subject: Add QPDFAcroFormDocumentHelper::addFormField --- include/qpdf/QPDFAcroFormDocumentHelper.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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. -- cgit v1.2.3-70-g09d2