Re: [iText-questions] Help Required regarding onStartPage method

2011-09-30 Thread Jason Berk
Don’t add content in “onStartPage()”. Set a boolean variable in “onStartPage()” that you then will evaluate in “onEndPage()” and add your content there. Jason From: Prashanth Palleti [mailto:prashanth...@gmail.com] Sent: Friday, September 30, 2011 2:09 PM To: itext-questions@lists.sou

Re: [iText-questions] problem with the documents signed with iText-5.0.4

2011-09-30 Thread Alexis Pigeon
Hi Antonio On 30 September 2011 18:55, Antonio de Calypo wrote: > Hi, I have a problem with the documents signed with iText-5.0.4. > Have you tried with the latest version, i.e. version 5.1.2? > Adobe recognizes the signature sometimes and not others. Even in the same > session, > Adobe can go

[iText-questions] Help Required regarding onStartPage method

2011-09-30 Thread Prashanth Palleti
Hi All, I came to know that adding content in onStartPage() method in iText is not recommended approach.But I have the requirement which will be solved by using this method.Can any one suggest an alternate way to do this i.e., I want to add some content which will differ for set of page dyamically

[iText-questions] problem with the documents signed with iText-5.0.4

2011-09-30 Thread Antonio de Calypo
Hi, I have a problem with the documents signed with iText-5.0.4. Adobe recognizes the signature sometimes and not others. Even in the same session, Adobe can go from one state to another. The CA certificate is self-signed and is in the store windows. Please, somebody knows as I fix it? Thanks -

Re: [iText-questions] HASH of PDF strip out of signature

2011-09-30 Thread AndreaC.
Its seems that there's not a trivial solution. An idea is to digital sign the t0-pdf document and then to work with first revision of the t1-pdf. But I suppose that no one can ensure me that t1-pdf and t0-pdf differ in only t1-digital signature. So, Its seems that there's not even a nontrivial s

Re: [iText-questions] HASH of PDF strip out of signature

2011-09-30 Thread mkl
Andrea, AndreaC. wrote: > so the suggestion to use the the AppendOnly flag seams to be acceptable. Ok. Be aware, though, that this flag is merely a hint to the signing software and enforces nothing at a specification "SHALL" level. AndreaC. wrote: > When the append mode is turned on, and the doc

[iText-questions] FontDescriptor without FontFile dictionary

2011-09-30 Thread William Bell
Good afternoon, I need to confirm if all fonts in a pdf document are embedded. Listing 16.3 (page 530 iText in Action 2nd Edition) is working very well. [Note: I have made a slight modification so that I employ the section marked as 1 to all font names... This changes the output fr

Re: [iText-questions] HASH of PDF strip out of signature

2011-09-30 Thread AndreaC.
Thank you very much for your answer and for yours precious suggestions. No, I'm not in direct control of the signing process, so the suggestion to use the the AppendOnly flag seams to be acceptable. But now the problem is how can I decide if user has signed exactly the t0 time generation document

[iText-questions] Bookmark

2011-09-30 Thread Khatri Anand
Hello sir, I want to add Bookmark into PDF. I got the Instance of a writer by PdfStamper class instead of PdfWriter class. I use following line of code... PdfReader readCombine=new PdfReader("C:\\CombinePDF.pdf"); PdfStamper stamp=new PdfStamper(readCombine, new FileO

Re: [iText-questions] HASH of PDF strip out of signature

2011-09-30 Thread mkl
Andrea, AndreaC. wrote: > Obviously the t1 HASH should be calculated from the PDF where signature > was striped out. > So the question is, how can I calculate that t1 time HASH? As Paulo already said, signing may change the PDF considerably, e.g. reorganize the file, throw away unused portions,

Re: [iText-questions] HASH of PDF strip out of signature

2011-09-30 Thread Paulo Soares
Signing a pdf may reorganize the internal stucture and never give the same hash. The hash way will never work. You'll have to mark somehow the pdf, maybe with a unique keyword in the pdf info. Paulo -Original Message- From: AndreaC. [mailto:andrea.c...@gmail.com] Sent: Friday, Septemb