François Christophe wrote:

It's working very well but I would like to have the same file in output as the 
file in input. So if I sign the original.pdf file I would have original.pdf in 
output but with the signature. Can we open a pdf file in I/O with IText lib ?
Is this possible?

No, hardly any program I know writes to a file while reading it.
Most programs write to a temporary file and once they are done
writing, they replace the original file with the temporary file.
That is what you should do too.

Another solution would be to read the original file into a
byte array (into memory), create PdfReader using this byte
array and create PdfStamper with a FileOutputStream writing
to the original file (overwriting it).

BTW: I see that you are from Belgium; it is now also possible
to add a digital signature to a PDF file using your Belgian eID.
I did the test with my own eID the day before yesterday and
it worked!
br,
Bruno


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to