Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Pre populating a PDF and making it editable using iText

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to all the Ranchers,

I see to be hitting my head onto a problem for which I am not getting a solution over the net. So I seek help from you.

My program was to populate a PDF with values and return the form using iText.
I was able to do this and things were going fine. It was later decided that the form has to be made editable after the values are populated using iText.
This part I am unable to do.

I have tried using the PDFStamper.partialFormFlattening() along with the stamper.setFormFlattening(true) with not much success.

Many have enquired for this same issue and I do not see any concrete answers coming in.

Below is a section of the sample code. I was able to partially populate the PDF but then the PDF was uneditable. I want it to be editable



Any help regarding is greatly appreciated.

Thanks
Anjali
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use iText in earnest, then you simply must get a copy of "iText in Action". Without it, you'll waste countless hours hunting down arcane knowledge of iText's inner working that aren't well (or not at all) documented. Be sure to get the right edition: ed. 1 for iText 1 and 2, ed. 2 for iText 5.
 
Anjali Raman
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Ulf.
But I am hopeful that there could be someone who has actually faced this issue and implemented this as it seems to be a generic problem with all who use iText APIs.
 
We don't have time for this. We've gotta save the moon! Or check this out:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!