diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-03-04 20:46:07 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-03-04 21:08:37 +0100 |
commit | 9fb174b9e9ff3d715091d435942de1e2d9db72ef (patch) | |
tree | eb7672195f80e38914766d9821c564fd2a34c3e6 /include/qpdf/QPDFFormFieldObjectHelper.hh | |
parent | c46137432e19c0701624eb3bcb954b4cf39ec6f5 (diff) | |
download | qpdf-9fb174b9e9ff3d715091d435942de1e2d9db72ef.tar.zst |
Major rework of handling form fields when copying pages (fixes #509)
Diffstat (limited to 'include/qpdf/QPDFFormFieldObjectHelper.hh')
-rw-r--r-- | include/qpdf/QPDFFormFieldObjectHelper.hh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/qpdf/QPDFFormFieldObjectHelper.hh b/include/qpdf/QPDFFormFieldObjectHelper.hh index 6052f2e3..4085371e 100644 --- a/include/qpdf/QPDFFormFieldObjectHelper.hh +++ b/include/qpdf/QPDFFormFieldObjectHelper.hh @@ -172,12 +172,18 @@ class QPDFFormFieldObjectHelper: public QPDFObjectHelper QPDF_DLL std::vector<std::string> getChoices(); - // Set an attribute to the given value + // Set an attribute to the given value. If you have a + // QPDFAcroFormDocumentHelper and you want to set the name of a + // field, use QPDFAcroFormDocumentHelper::setFormFieldName + // instead. QPDF_DLL void setFieldAttribute(std::string const& key, QPDFObjectHandle value); // Set an attribute to the given value as a Unicode string (UTF-16 - // BE encoded). The input string should be UTF-8 encoded. + // BE encoded). The input string should be UTF-8 encoded. If you + // have a QPDFAcroFormDocumentHelper and you want to set the name + // of a field, use QPDFAcroFormDocumentHelper::setFormFieldName + // instead. QPDF_DLL void setFieldAttribute(std::string const& key, std::string const& utf8_value); |