• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

edit pdf file by using itext

 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
anyone? some suggestion please
 
Rob Spoor
Sheriff
Pie
Posts: 20514
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • 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.
 
Trilochan Bharadwaj
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should help:
forms in pdf

trilochan.
 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • 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
 
Paul Clapham
Sheriff
Posts: 21002
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 21002
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic