Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
2.0.3
-
None
-
None
-
Latest macOS Sierra 10.12.1. Java 1.8.0_73
Description
I have a PDF document which has form. I can type either from browser, Adobe reader, they all have an editable form. But when I use getAcroForm(), it return null. The PDF https://drive.google.com/file/d/0B3Uah3i8yt9qTUVldFVWeTFob2c/view?usp=sharing
PDDocument document = PDDocument.load(input); PDDocumentCatalog pdCatalog = document.getDocumentCatalog(); PDAcroForm formPdf = pdCatalog.getAcroForm(); // here return null if (formPdf != null) { formPdf.flatten(); }