Mr.Andreas, I have created an issue in JIRA and attached the 2 files. Key=PDFBOX-481. Thanks & Regards Venkatesh Prasad.B.K.
________________________________ From: Andreas Lehmkühler [mailto:andr...@lehmi.de] Sent: Fri 6/5/2009 5:30 PM To: pdfbox-users@incubator.apache.org Subject: Re: RE: RE: renaming a field and not able to set value to the saved PDF document ... Please create an issue on jira and attach both files. Thanks. Andreas Lehmkühler ----- original Nachricht -------- Betreff: RE: RE: renaming a field and not able to set value to the saved PDF document ... Gesendet: Fr, 05. Jun 2009 Von: Venkatesh Prasad<venkatesh.pra...@trv.envestnet.com> > Mr. Andreas, > > >> Only to be sure, changing values in 'Source_Original.PDF' works with the > same code you use to manipulate 'Source_Target.PDF'?? > > Yes. > > Thanks & Regards > > Venkatesh Prasad.B.K. > > ________________________________ > > From: Andreas Lehmkühler [mailto:andr...@lehmi.de] > Sent: Fri 6/5/2009 12:41 PM > To: pdfbox-users@incubator.apache.org > Subject: Re: RE: renaming a field and not able to set value to the saved PDF > document ... > > > > > > Thanks for responding to my mail. I am using PDFBox-0.7.3 version. I will > > explain what I want to do. > > > > 1. I have a PDF Document with Fields and let us call this > > 'Source_Original.PDF'. The field names in this PDF document have to be > > renamed and stored as 'Source_Target.PDF'. I then have to set/change the > > values of form-fields in 'Source_Target.PDF'. > > > > The issue I am facing is given below: > > > > 1. I renamed the form fields in 'Source_Original.PDF" using the code > given > > in my earlier mail (below) and saved it as 'Source_Target.PDF'. > > 2. I checked the form fields in 'Source_Target.PDF" and form-fields were > > renamed correctly. > > 3. However when I tried to set/change values of form-fields in > > 'Source_Target.PDF' using PDFBox code, I was not able to do so. > > > > I used iText to set/change values of form-fields in 'Source_Target.PDF' > and > > was successful. But we want to use only PDFBox. > > > > To summarize - We are not able to set/change values of form fields of a > PDF > > Document whose form-fields have been renamed. There is no issue if the > > form-fields are renamed manually using Adobe Acrobat 9. The issue is only > > when the form-fields are renamed using PDFBox option - > > setPartialName(newFieldName); > Only to be sure, changing values in 'Source_Original.PDF' works with the > same code you use to manipulate 'Source_Target.PDF'?? > > Andreas Lehmkühler > > > > --- original Nachricht Ende ----