We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bec5a3 commit 052f8acCopy full SHA for 052f8ac
pypdf/_writer.py
@@ -2921,7 +2921,7 @@ def merge(
2921
pag[NameObject("/Annots")] = lst
2922
self.clean_page(pag)
2923
2924
- if "/AcroForm" in cast(DictionaryObject, reader.trailer["/Root"]):
+ if "/AcroForm" in _ro and _ro['/AcroForm'] is not None:
2925
if "/AcroForm" not in self._root_object:
2926
self._root_object[NameObject("/AcroForm")] = self._add_object(
2927
cast(
0 commit comments