[ 
https://issues.apache.org/jira/browse/PDFBOX-3586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15686275#comment-15686275
 ] 

steve neo commented on PDFBOX-3586:
-----------------------------------

Thanks for your comments. Yes, I try to flatten the PDF, beside that, I also 
want to extract all fields required, max-length, or  any relative information 
regarding to fields( my code does not reflect that). 

I am just starting working on PDF stuff, so still not very familiar with some 
concepts in PDF.  Good know annotation also can achieve similar  effect with 
form.  I will do some research and come back. Thanks. 

> 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 an editable form. But when I use getAcroForm(), it 
> return null.   The PDF 
> https://drive.google.com/file/d/0B3Uah3i8yt9qTUVldFVWeTFob2c/view?usp=sharing
> {code}
>         PDDocument document = PDDocument.load(input);
>         PDDocumentCatalog pdCatalog = document.getDocumentCatalog();
>         PDAcroForm formPdf = pdCatalog.getAcroForm(); // here return null
>         if (formPdf != null) {
>             formPdf.flatten();
>         }
> {code}



--
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