You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2011/01/03 22:27:46 UTC
[jira] Updated: (PDFBOX-930) I cant able to get list of fields
[ https://issues.apache.org/jira/browse/PDFBOX-930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler updated PDFBOX-930:
--------------------------------------
Fix Version/s: (was: 0.7.3)
> 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
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.