Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PrintFields() using Pdfbox

swati basant
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used the PrintFields API to read the data from the textboxes in a acroform in a pdf using pdfbox.

this api lists out all the fields, their values and the type of the field in the pdf..

but the problem is that...
it returns the value as null..even if there is data present in the textbox.

this problem is not there if i first insert the values into the fields using a SetFields api and then perform PrintFields...

but if i enter the data into the pdf without using setFileds..(as in manual entering and saving) ..this api doesnt does list out all the fields and the type...but not the value...
value is returned as null..

please help...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic