poppler/Catalog.cc | 6 ------ 1 file changed, 6 deletions(-) New commits: commit ac9b736c3f20704a41db9102589fa259abb26891 Author: Albert Astals Cid <aa...@kde.org> Date: Tue May 3 00:16:00 2022 +0200
Fix rendering regression introduced in 5f915d46c99ecbc0c026b86de50f9e0243391a01 We can't assume "Fields" needs to exist, there's other things there like NeedAppearances that are valid without Fields The bug in Catalog::addFormToAcroForm remains, but will need to wait to get fixed on next release diff --git a/poppler/Catalog.cc b/poppler/Catalog.cc index 6fbf2dcf..7a1e4095 100644 --- a/poppler/Catalog.cc +++ b/poppler/Catalog.cc @@ -104,12 +104,6 @@ Catalog::Catalog(PDFDoc *docA) } // get the AcroForm dictionary acroForm = catDict.getDict()->lookup("AcroForm"); - if (acroForm.isDict()) { - // We later assume the Fields Array exists, so check it does - if (!acroForm.dictLookup("Fields").isArray()) { - acroForm.setToNull(); - } - } // read base URI Object obj = catDict.getDict()->lookupEnsureEncryptedIfNeeded("URI");