Re: [iText-questions] Multiple signatures and verification by Acrobat

2010-03-31 Thread Stephen Byrne
mkl wrote: > Stephen, > > > Stephen Byrne wrote: >> mkl wrote: >>> Indeed Acrobat and Reader have more requirements concerning the validity >>> of >>> signatures than the mere matching of the hash value. They also allow only >>> a >>> very limitted set of additions to the file after signing. Thes

Re: [iText-questions] Multiple signatures and verification by Acrobat

2010-03-31 Thread mkl
Stephen, Stephen Byrne wrote: > > mkl wrote: >> Indeed Acrobat and Reader have more requirements concerning the validity >> of >> signatures than the mere matching of the hash value. They also allow only >> a >> very limitted set of additions to the file after signing. These >> requirements >>

Re: [iText-questions] Multiple signatures and verification by Acrobat

2010-03-31 Thread Stephen Byrne
mkl wrote: > Stephen, > > Stephen Byrne wrote: >> I am using iText to sign a document, save it to a file, read that file, >> add another signature, and save it to a second file. If I read my output >> files and verify the signatures with iText, they both verify. If I open >> the once-signed with A

Re: [iText-questions] Multiple signatures and verification by Acrobat

2010-03-30 Thread mkl
Stephen, Stephen Byrne wrote: > > I am using iText to sign a document, save it to a file, read that file, > add another signature, and save it to a second file. If I read my output > files and verify the signatures with iText, they both verify. If I open > the once-signed with Adobe Acrobat, it

Re: [iText-questions] Multiple signatures and verification by Acrobat

2010-03-30 Thread Paulo Soares
@lists.sourceforge.net Subject: [iText-questions] Multiple signatures and verification by Acrobat I am using iText to sign a document, save it to a file, read that file, add another signature, and save it to a second file. If I read my output files and verify the signatures with iText, they both

[iText-questions] Multiple signatures and verification by Acrobat

2010-03-30 Thread Stephen Byrne
I am using iText to sign a document, save it to a file, read that file, add another signature, and save it to a second file. If I read my output files and verify the signatures with iText, they both verify. If I open the once-signed with Adobe Acrobat, it shows the signature as valid. I expected th

Re: [iText-questions] Multiple signatures do not work with signatures on pages other than the first one

2010-01-20 Thread alexrait
I've found a solution thanx to Michael. In the post of the here http://old.nabble.com/Problem-with-PdfReader.eliminateSharedStreams%28%29-in-concert-with-appending-PdfStamper-to26734822.html He says that if he works with RandomAccessFileOrArray then everything goes OK. Hence, I did this change

Re: [iText-questions] Multiple signatures do not work with signatures on pages other than the first one

2010-01-20 Thread mkl
alexrait, alexrait wrote: > Is there any way to manually fix the pdf, like reading it as a text file, > finding and replacing the incorrect content? You can fix it quite easily by replacing the false references in the /Contents array by the original ones. Unfortunately this way you invalidate t

Re: [iText-questions] Multiple signatures do not work with signatures on pages other than the first one

2010-01-20 Thread alexrait
Is there any way to manually fix the pdf, like reading it as a text file, finding and replacing the incorrect content? Now, I've noticed that even if I sign first time on the last page with "append" flag turned on, it won't show the signature mkl wrote: > > alexrait, > > > alexrait wrote:

Re: [iText-questions] Multiple signatures do not work with signatures on pages other than the first one

2010-01-20 Thread mkl
alexrait, alexrait wrote: > Here is the full function that signs. > > public static void SignPDF(Stream instream, Stream outstream, > X509Certificate2 xcer, bool IsVisible, > string imageLocation, int[] rectangle, int page) > { > [...] > Rect

Re: [iText-questions] Multiple signatures do not work with signatures on pages other than the first one

2010-01-20 Thread alexrait
It happens with any file... Here is the full function that signs. public static void SignPDF(Stream instream, Stream outstream, X509Certificate2 xcer, bool IsVisible, string imageLocation, int[] rectangle, int page) { Org.BouncyCastle.X509.X509Certificate[] chain

Re: [iText-questions] Multiple signatures do not work with signatures on pages other than the first one

2010-01-20 Thread mkl
alexrait, alexrait wrote: > First I create a PdfStamper with the append parameter set to true. > I use the SetVisibleSignature method with the page parameter set to "1". > It works as expected if I sign the document once or more. > > Setting the page to "2" or any other page shows the signature

[iText-questions] Multiple signatures do not work with signatures on pages other than the first one

2010-01-20 Thread alexrait
First I create a PdfStamper with the append parameter set to true. I use the SetVisibleSignature method with the page parameter set to "1". It works as expected if I sign the document once or more. Setting the page to "2" or any other page shows the signature at the signatures tab on the left, bu

Re: [iText-questions] Multiple signatures

2009-12-10 Thread Leonard Rosenthol
Of course. This is a common workflow. -Original Message- From: mtrekker [mailto:mtrek...@hot.ee] Sent: Thursday, December 10, 2009 2:08 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Multiple signatures Coming back to the old subject I couldn't get my a

Re: [iText-questions] Multiple signatures

2009-12-09 Thread 1T3XT info
mtrekker wrote: > Coming back to the old subject I couldn't get my answer from search > results... > > Per PDF standard, each signature is revision when working in append mode. > How to solve the following reallife example: > > 1) user signs PDF and sends it to governement authority to complete >

[iText-questions] Multiple signatures

2009-12-09 Thread mtrekker
Coming back to the old subject I couldn't get my answer from search results... Per PDF standard, each signature is revision when working in append mode. How to solve the following reallife example: 1) user signs PDF and sends it to governement authority to complete acceptance 2) authority then n

Re: [iText-questions] Multiple signatures and multiple revisions

2009-12-01 Thread Leonard Rosenthol
onard -Original Message- From: Glam [mailto:gl...@abv.bg] Sent: Tuesday, December 01, 2009 1:36 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Multiple signatures and multiple revisions Hi, I've read the following thread http://old.nabble.com/Re:-multiple-signatures

Re: [iText-questions] Multiple signatures and multiple revisions

2009-12-01 Thread mkl
Glam, Glam wrote: > > is it possible (according to the PDF standard, and in iText) to have two > signatures for the same revision? just one afterthought... if you seriously want to be in the signature business, you should not only keep in mind the current plain PDF standard (i.e. ISO-32000-1:

Re: [iText-questions] Multiple signatures and multiple revisions

2009-12-01 Thread mkl
Glam, Glam wrote: > > is it possible (according to the PDF standard, and in iText) to have two > signatures for the same revision? (I have set a certification level to > CERTIFIED_FORM_FILLING_AND_ANNOTATIONS). > The point is that the document is created once and is not altered at all, > except

[iText-questions] Multiple signatures and multiple revisions

2009-11-30 Thread Glam
Hi, I've read the following thread http://old.nabble.com/Re:-multiple-signatures-td3725560.html , but there is something more I'd like to ask. It is obvious, that if the document has 2 revisions, the first signature doesn't cover the second revision. However, is it possible (according to the PDF

Re: [iText-questions] Multiple signatures, When i try to update the form field content thru PdfStamper it removes old signatures

2009-02-25 Thread 1T3XT info
Usman Shaik wrote: > Once i open the PDF document using PdfStamper then loop thru the Acro > Fields to update the content its removing the previous signatures. The only thing I can think of, is bad naming of the signatures. Otherwise I'm at a loss. -- This answer is provided by 1T3XT BVBA http:/

[iText-questions] Multiple signatures, When i try to update the form field content thru PdfStamper it removes old signatures

2009-02-24 Thread Usman Shaik
Hi, For signatures we are using SAPI (Cosign). the PDF can accept multiple signatures. Once i open the PDF document using PdfStamper then loop thru the Acro Fields to update the content its removing the previous signatures. Please help. i have used PdfStamper with append mode. This is what

[iText-questions] Multiple signatures

2008-05-15 Thread Bruno Lowagie
Juan Manuel Diaz wrote: > Dear Bruno, i was trying your library (iText) in a software application > which will be using the government of the province of Buenos Aires, and > i think that is a great tool, congratulations!!! Thanks! > I can create pdf documents in an easy way with your library, b

Re: [iText-questions] Multiple signatures in a same revision

2008-01-24 Thread Leonard Rosenthol
A blank signature field is a visual placeholder on the document for where a user could click (in an interactive viewer like Acrobat) to sign the document. They could also be used as a placeholder for a location/rect on the page where a signature should go in a non- interactive signing proc

Re: [iText-questions] Multiple signatures in a same revision

2008-01-24 Thread Eneko González Benito
I guess you need them so you can sign later or something similar :-) Well, it doesn´t matter ... thanks for your quick answers :) Paulo Soares escribió: I've no idea. Why would I need a blank signature field? -- Eneko González Benito Jefe de Proyecto

Re: [iText-questions] Multiple signatures in a same revision

2008-01-24 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Eneko González Benito > Sent: Thursday, January 24, 2008 2:41 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Multiple signatures in a sa

Re: [iText-questions] Multiple signatures in a same revision

2008-01-24 Thread Eneko González Benito
> It doesn't matter if the doc has already blank sugnature fields or not. Ok, Paulo. So .. what are these fields used for? -- Eneko González Benito Ezinbestekoa ez bada, ez imprimatu mezu hau; zaindu ingurumena. No imprima este e-mail si no es totalmente necesario; respete el Medio Ambie

Re: [iText-questions] Multiple signatures in a same revision

2008-01-24 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Eneko González Benito > Sent: Thursday, January 24, 2008 12:52 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Multiple signatures in a

Re: [iText-questions] Multiple signatures in a same revision

2008-01-24 Thread Eneko González Benito
Hi Paulo, Paulo Soares escribió: Each signature is a revision, always. That's how PDFs work. Ok. So i suppose that you cannot get rid of that warning, can you? I know someone that says that you must know the number of people who is going to sign a document so you can leave some blan

Re: [iText-questions] Multiple signatures in a same revision

2008-01-24 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Eneko González Benito > Sent: Thursday, January 24, 2008 11:46 AM > To: Post all your questions about iText here > Subject: [iText-questions] Multiple signatures in a same

[iText-questions] Multiple signatures in a same revision

2008-01-24 Thread Eneko González Benito
Hi all, I know how to add multiple signatures to a document and when i open it with Acrobat Reader, i see that there are multiple revisions (1 for each signature) and a warning that says that each signature signs a revision, but knows nothing about post-revisions. Is there a way to have multi

Re: [iText-questions] Multiple signatures problem

2007-12-09 Thread Luca Tomat
Ok, everything works now. It looks like a problem of OpenSignPDF... this is what they do: [CUT] PdfDictionary signDict = new PdfDictionary(); signDict.put(PdfName.FT, PdfName.SIG); signDict.put(PdfName.FILTER, new PdfName("Adobe.PPKLite")); signDict.put(PdfNa

[iText-questions] Multiple signatures problem

2007-12-09 Thread Luca Tomat
Hello, i'm trying to place multiple signatures on a PDF file (i need 4 signatures). I tried modifying OpenSignPDF but when i add more than two signatures i always get that only the first and the last one are valid while all the signatures among the two show a red X on them. For instance... lets sa

Re: [iText-questions] Multiple signatures (was: why don't they work ? )

2006-11-13 Thread antonio
... > * Within the appended-revision section, there is a dictionary object > (66 0) with /Type/catalog > What is it for ? It is a dangling (not referenced) object. bug fixed :) ... > I'd like to know more about difficulties and limits of your > experiment, so please aswer to my last question:

Re: [iText-questions] Multiple signatures (was: why don't they work ? )

2006-11-13 Thread aiacono
... > * Within the appended-revision section, there is a dictionary object > (66 0) with /Type/catalog > What is it for ? It is a dangling (not referenced) object. bug fixed :):) ... > I'd like to know more about difficulties and limits of your > experiment, so please aswer to my last questio

Re: [iText-questions] Multiple signatures (was: why don't they work ? )

2006-11-13 Thread [EMAIL PROTECTED]
Great job Antonio! It is a really promising experiment. I can confirm that your resulting document is correct. Althoug I'm not an expert of pdf-core internals, I noted some strange things within your generated-pdf [3]: * Within the appended-revision section, there is a dictionary object (66 0)

[iText-questions] Multiple signatures (was: why don't they work ? )

2006-11-12 Thread aiacono
Hello, about this post [1] I would want to contribute to the solution of the problem. I have taken this signed pdf [2], removed the second signature and added mine with iText and the result it seems corrected [3]. Soon I will clean up my code and I will send the patch. Bye -- Antonio http://w

Re: [iText-questions] Multiple signatures - why don't they work ?

2006-10-27 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: Friday, October 27, 2006 1:32 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Multiple signatures - why don't

[iText-questions] Multiple signatures - why don't they work ?

2006-10-27 Thread [EMAIL PROTECTED]
It's more than one week I'm thinking about multiple signatures. Bruno Lowagie demonstrated in an ample tutorial [http://itext.ugent.be/articles/eid-pdf/index.php] how to add signatures : "approval" signatures and "certification" signatures. Unfortunately, that tutorial ended showing the inab

[iText-questions] Multiple signatures

2006-08-03 Thread Johan Vromans
Hi, To a fresh PDF document, I add a digital signature. This signature covers this revision (say, revision 1) completely. I send it to a customer, who adds her own digital signature. This creates a new revision, revision 2, that is completely covered by her signature. Is there an easy way to find

RE: [iText-questions] Multiple Signatures in one PDF

2004-11-22 Thread Paulo Soares
Multiple signatures will be supported next month. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Robert Esterer > Sent: Monday, November 22, 2004 5:33 PM > To: [EMAIL PROTECTED] > Subject: [iText-questions] Multiple

[iText-questions] Multiple Signatures in one PDF

2004-11-22 Thread Robert Esterer
Hello, I noticed that exisiting signatures in a PDF become invalid after signing it with iText. My guess is that it's because iText removes the old revisions that were signed before. Is there a workaround for this? I didn't find a fitting method in the API so far. Best Regards, Robert Esterer