• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

edit pdf file by using itext

 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys

i have a pdf file, and is it possible by using itext lib(or any third party lib) to add a button to the pdf file, and when i click on the button, a new row will be added to the pdf file. if it is not possible, is there an alternative way to accomplish my objective?

thank you
 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
anyone? some suggestion please
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's move this to the Other Open Source Projects forum, as that's where iText, PDFBox and others are usually discussed.
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This should help:
forms in pdf

trilochan.
 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.albertacourts.ab.ca/cs/familyjustice/forms/J3469.pdf

there are two buttons on this pdf file , allow user to add/delete a new line

how can this function be implemented by using java, or is it possible?

thank you
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You want to display a PDF file -- using Acrobat, I assume -- and have that PDF include buttons which actually change the PDF file which Acrobat is now displaying -- and have those changes show up right away?

You might possibly be able to do that by designing the PDF in a suitable way, so that Acrobat supported that. (Actually I have no idea whether Acrobat can do that.) But with iText -- a package that can barely parse an existing PDF? Not very likely at all. I wouldn't bet any money on it at all. Your only hope is that Acrobat can do it.

Probably this idea is going to have to be rethought. PDF is for finished products, so the buttons should be on some application which is updating some other data, from which the PDF will eventually be generated.
 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:You want to display a PDF file -- using Acrobat, I assume -- and have that PDF include buttons which actually change the PDF file which Acrobat is now displaying -- and have those changes show up right away?

You might possibly be able to do that by designing the PDF in a suitable way, so that Acrobat supported that. (Actually I have no idea whether Acrobat can do that.) But with iText -- a package that can barely parse an existing PDF? Not very likely at all. I wouldn't bet any money on it at all. Your only hope is that Acrobat can do it.

Probably this idea is going to have to be rethought. PDF is for finished products, so the buttons should be on some application which is updating some other data, from which the PDF will eventually be generated.



FYI..

are you suggesting me to non-programmatically edit the PDF file and use the arobat editor?

 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jim li wrote:are you suggesting me to non-programmatically edit the PDF file and use the arobat editor?



No, I'm not suggesting anything in particular. I do know the idea you posted has no hope of working. But I don't know what your actual requirements are, so I'm not making any suggestion about how to implement them. What you posted wasn't the actual requirements, was it? It looked more like an attempt to implement something more reasonable, but I couldn't tell what.
 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:

jim li wrote:are you suggesting me to non-programmatically edit the PDF file and use the arobat editor?



No, I'm not suggesting anything in particular. I do know the idea you posted has no hope of working. But I don't know what your actual requirements are, so I'm not making any suggestion about how to implement them. What you posted wasn't the actual requirements, was it? It looked more like an attempt to implement something more reasonable, but I couldn't tell what.



add the button to my pdf programmatically is actully my business requirement, and i am still doing the research to figure out is it possible to do it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic