You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "satyaditya m (JIRA)" <ji...@apache.org> on 2016/12/16 23:18:58 UTC
[jira] [Created] (PDFBOX-3633) getAcroForm is null , when a pdfform
values are edited in preview.app in mac
satyaditya m created PDFBOX-3633:
------------------------------------
Summary: getAcroForm is null , when a pdfform values are edited in preview.app in mac
Key: PDFBOX-3633
URL: https://issues.apache.org/jira/browse/PDFBOX-3633
Project: PDFBox
Issue Type: Bug
Affects Versions: 2.0.3
Environment: Mac OS 10.12.1 (16B265)
Reporter: satyaditya m
I am facing this peculiar issue while trying to get the field values present in this form eg : (https://www.irs.gov/pub/irs-pdf/fw9.pdf)
When this form is edited on preview app in mac, documentCatalog does not contain the acroForm . When the same use case is repeated on the adobe acrobat, I am able to retrieve the fields present in the PDF page.
File f=new File("fw8.pdf");
PDDocument pdfDocument = PDDocument.load(f);
PDDocumentCatalog docCatalog =pdfDocument.getDocumentCatalog();
System.out.println("metadata "+docCatalog.getMetadata());
PDAcroForm acroForm = docCatalog.getAcroForm();
if(acroForm==null){
Logger.debug("acroform is null");
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org