I cant able to get list of fields
---------------------------------
Key: PDFBOX-930
URL: https://issues.apache.org/jira/browse/PDFBOX-930
Project: PDFBox
Issue Type: Bug
Components: PDModel.AcroForm
Affects Versions: 0.7.3
Environment: Win-XP
Reporter: Manikandan
Fix For: 0.7.3
I have a pdf template contains textboxes. I need textbox value but its not
displayed properly. I am getting Null Pointer Exception.
Here i mentioned my code ....
try{
PDDocument pdf = PDDocument.load("C:\\Documents and
Settings\\manikandan.n\\Desktop\\MyTemplate\\1.pdf" );
PDDocumentCatalog docCatalog = pdf.getDocumentCatalog();
PDAcroForm acroForm = docCatalog.getAcroForm();
acroForm.setCacheFields(true);
PDField field = acroForm.getField("Client_Name");
field.setValue("Smith");
System.out.println("Sample::::::"+field.getValue());
pdf.save( "C:\\Documents and
Settings\\manikandan.n\\Desktop\\MyTemplate\\2.pdf" );*/
}catch(Exception e){
System.out.println("Error::::"+e);
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.