2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-03 07:12:28 +00:00

Remove QPDFAcroFormDocumentHelper::copyFieldsFromForeignPage

This commit is contained in:
Jay Berkenbilt 2022-04-16 13:11:37 -04:00
parent 6df6260751
commit 496ca2e4dc
3 changed files with 5 additions and 28 deletions

View File

@ -248,19 +248,6 @@ class QPDFAcroFormDocumentHelper: public QPDFDocumentHelper
QPDFAcroFormDocumentHelper& from_afdh,
std::set<QPDFObjGen>* new_fields = nullptr);
// copyFieldsFromForeignPage was added in qpdf 10.2 and made to do
// nothing in 10.3. It wasn't actually doing the right thing and
// would result in broken files in all but the simplest case of a
// single page from one file being added to another file, as
// happens with qpdf --split-pages.
[[deprecated("Use fixCopiedAnnotations instead")]]
// ABI: delete this method
QPDF_DLL void
copyFieldsFromForeignPage(
QPDFPageObjectHelper foreign_page,
QPDFAcroFormDocumentHelper& foreign_afdh,
std::vector<QPDFObjectHandle>* copied_fields = nullptr);
private:
void analyze();
void traverseField(

View File

@ -1143,21 +1143,6 @@ QPDFAcroFormDocumentHelper::transformAnnotations(
}
}
void
QPDFAcroFormDocumentHelper::copyFieldsFromForeignPage(
QPDFPageObjectHelper foreign_page,
QPDFAcroFormDocumentHelper& foreign_afdh,
std::vector<QPDFObjectHandle>* copied_fields)
{
this->qpdf.warn(QPDFExc(
qpdf_e_unsupported,
"",
"",
0,
"Non-working version of copyFieldsFromForeignPage"
" from qpdf 10.2 called; application requires updating"));
}
void
QPDFAcroFormDocumentHelper::fixCopiedAnnotations(
QPDFObjectHandle to_page,

View File

@ -64,6 +64,11 @@ For a detailed list of changes, please see the file
- API: breaking changes
- Remove
``QPDFAcroFormDocumentHelper::copyFieldsFromForeignPage``. This
method never worked and only did something in qpdf version
10.2.x.
- Other changes
- A new chapter on contributing to qpdf has been added to the