• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

How to fill pdf form in jsp  RSS feed

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys I have created a pdf form with attribute names as web form , now what I want is to fill this form according to values entered by user (jsp form)
also I would save it some where in a directory so later I want to call and view it for print , how could I do that guys ???

I really don't know how to fill the pdf form according to values I have ???

please help
thaaaaaaaaaaaanks in advance
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The iText library can be used to fill in AcroForms.
 
alsoumahi alBatal
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Lester Burnham wrote:The iText library can be used to fill in AcroForms.



could you please give me some simple code to do that , I really searched about iText and don't know how to use it to fill the form

I really apperciate your help
thanks for reply
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try a little bit harder. A search for "acroform itext" brings up many relevant results, including tutorials.
 
alsoumahi alBatal
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Lester Burnham wrote:Try a little bit harder. A search for "acroform itext" brings up many relevant results, including tutorials.



thanks dear for reply , I got tutorials in how to write into pdf form , but the thing I am now thinking is how do I write into input fields , not to create new pdf and write what want
that is not my aim , you know dear , it is like filling to web form but in pdf.

what I do in web form , is to create servlet that is read inputs from web form using request.getParameter and fill the form again using request.getAttribute("") to proper field

how could I do that in pdf form exactly treating with pdf fields
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, filling in forms in existing PDFs is what many of those tutorials will teach you.

Or go directly to http://pdfbox.apache.org/userguide/cookbook.html where the relevant class for one particular PDF library are mentioned.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!