steve neo created PDFBOX-3586:
---------------------------------

             Summary: Unable to detect form - pdCatalog.getAcroForm() return 
null
                 Key: PDFBOX-3586
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3586
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 2.0.3
         Environment: Latest macOS Sierra 10.12.1. Java 1.8.0_73
            Reporter: steve neo


I have a PDF document which has form - I can type either from browser, Adobe  
reader, they all have a editable form. But when I use getAcroForm(), it return 
null.  

        PDDocument document = PDDocument.load(input);
        PDDocumentCatalog pdCatalog = document.getDocumentCatalog();
        PDAcroForm formPdf = pdCatalog.getAcroForm();
        if (formPdf != null) {
            formPdf.flatten();
        }




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to