[
https://issues.apache.org/jira/browse/PDFBOX-930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maruan Sahyoun reassigned PDFBOX-930:
-------------------------------------
Assignee: Maruan Sahyoun
> 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: AcroForm
> Affects Versions: 0.7.3
> Environment: Win-XP
> Reporter: Manikandan
> Assignee: Maruan Sahyoun
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]