Re: [iText-questions] Can iText View PDF File?

2013-01-11 Thread 1T3XT BVBA
On 12/01/2013 5:42, Christian Eric Paran wrote: > Question: Can iText view PDF files No, we always refer people who ask for a viewer to IDR Solutions and JPedal: http://www.idrsolutions.com/ > and search, highlight, and jump to pages? We do custom projects for companies with similar requirement

Re: [iText-questions] Sign PDF/A PAdES & LiveCycle

2013-01-11 Thread iText Info
Op 11/01/2013 17:27, Danilo Nicolò schreef: > I hope I have given right information. No you haven't. You say "if I open pdf i can't see signature". 1. to see the signature, you need to open the document in a text editor, NOT in Adobe Reader. The signature is the value of the /Contents key in th

Re: [iText-questions] Sign PDF/A PAdES & LiveCycle

2013-01-11 Thread Leonard Rosenthol
And providing actual sample PDFs of "before" and "after" will help to... On 1/11/13 11:14 AM, "iText Info" wrote: >Op 11/01/2013 16:52, Danilo Nicolò schreef: >> I can't see the signature. In other PDF i can see. >That's not really helpful information-wise. >You shouldn't expect an answer if you

Re: [iText-questions] Sign PDF/A PAdES & LiveCycle

2013-01-11 Thread Danilo Nicolò
This is part that perform signature : psa.setVisibleSignature(new Rectangle(36, 748, 144, 780), 1, "sig"); ExternalDigest digest = new ProviderDigest("SunPKCS11"); ExternalSignature signature = new PrivateKeySignature(privateKey, "SHA-256", p.getName()); MakeSignature.signDetached(

Re: [iText-questions] Sign PDF/A PAdES & LiveCycle

2013-01-11 Thread iText Info
Op 11/01/2013 16:52, Danilo Nicolò schreef: > I can't see the signature. In other PDF i can see. That's not really helpful information-wise. You shouldn't expect an answer if you don't do any effort asking the question. -

Re: [iText-questions] Sign PDF/A PAdES & LiveCycle

2013-01-11 Thread Danilo Nicolò
Hi, I can't see the signature. In other PDF i can see. Danilo Il 11/01/2013 16:47, iText Info ha scritto: > Op 11/01/2013 16:43, Danilo Nicolò schreef: >> Can someone give me an explanation because the process of signature >> doesn't work in that specified PDF/A? > PDF/A-1: that probably won't wor

Re: [iText-questions] Sign PDF/A PAdES & LiveCycle

2013-01-11 Thread iText Info
Op 11/01/2013 16:43, Danilo Nicolò schreef: > Can someone give me an explanation because the process of signature > doesn't work in that specified PDF/A? PDF/A-1: that probably won't work. PDF/A-2: what your problem? -- Ma

[iText-questions] Sign PDF/A PAdES & LiveCycle

2013-01-11 Thread Danilo Nicolò
Hi all, I have a PDF created with LiveCycle, after converting PDF to PDF/A i want to sign it, but i can't. Can someone give me an explanation because the process of signature doesn't work in that specified PDF/A? NB: I can to sign other PDF or PDF/A not created with LiveCycle. Best regards, Da

Re: [iText-questions] desperatly trying to run Code sample 4.1: Signing a document using PKCS#11

2013-01-11 Thread Marot Laurent
>The results seem pretty consistent to me: > There's nothing in slot 0 or there is no such thing as slot 0. Same goes for > all other slot numbers except 1 and 2. >You logged in correctly into the key store, but there's nothing stored in it >(no elements found when asking for aliases). >You didn

Re: [iText-questions] PdfPKCS7.IsRevocationValid bug report

2013-01-11 Thread iText Info
Op 11/01/2013 15:52, Paulo Soares schreef: > I think this is my fault. I thought that it referred to the TSA > imprint that also had SHA-1 hardcoded and was fixed some time ago. It > was another one. I think I fixed it in Java. There's an unassigned ticket in JIRA to do the fix in C#. best regards

Re: [iText-questions] PdfPKCS7.IsRevocationValid bug report

2013-01-11 Thread Paulo Soares
I think this is my fault. I thought that it referred to the TSA imprint that also had SHA-1 hardcoded and was fixed some time ago. It was another one. Paulo On Fri, Jan 11, 2013 at 12:36 PM, iText Info wrote: > Op 11/01/2013 12:22, aszo...@szomor.hu schreef: >> Our TSA provider use HashSha256 no

[iText-questions] [SPAM] Re: [SPAM] Re: How do I extract the coordinate of the words from a pdf document?

2013-01-11 Thread mkl
Kausik, Kausik Porel wrote > But some text block contains multiple words without space and at that time > it is not able to extract words correctly. I'm filtering it on the basis > of position of the text return by TextRenderInfo. > For example. suppose there are words : "hello world", when my cus

Re: [iText-questions] PdfPKCS7.IsRevocationValid bug report

2013-01-11 Thread iText Info
Op 11/01/2013 12:22, aszo...@szomor.hu schreef: > Our TSA provider use HashSha256 not HashSha1 ! I just checked, the problem also exists in the Java version. -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API

Re: [iText-questions] desperatly trying to run Code sample 4.1: Signing a document using PKCS#11

2013-01-11 Thread iText Info
The results seem pretty consistent to me: Op 11/01/2013 13:15, Marot Laurent schreef: > idslot = 0 > Exception in thread "main" java.security.ProviderException: Initialization > failed There's nothing in slot 0 or there is no such thing as slot 0. Same goes for all other slot numbers except 1 a

Re: [iText-questions] desperatly trying to run Code sample 4.1: Signing a document using PKCS#11

2013-01-11 Thread Andreas Kuehne
Hi Marot, I would guess Slot 2 is interesting one! Obviously it needs credentials to be accessed (LoginException). Good luck, Andreas > Op 11/01/2013 12:12, Marot Laurent schreef: >> 134:String alias = (String)ks.aliases().nextElement(); >> Exception in thread "main" java.util.No

Re: [iText-questions] desperatly trying to run Code sample 4.1: Signing a document using PKCS#11

2013-01-11 Thread Marot Laurent
Op 11/01/2013 12:12, Marot Laurent schreef: > 134:String alias = (String)ks.aliases().nextElement(); > Exception in thread "main" java.util.NoSuchElementException Looks as if nothing can be found in the slot. Are you using the correct slot? What makes you think the slot with index

Re: [iText-questions] PdfPKCS7.IsRevocationValid bug report

2013-01-11 Thread iText Info
Op 11/01/2013 11:07, aszo...@szomor.hu schreef: > why you did not repair it ? The primary source of the digital signing code is iText, the Java version. Changes to the Java version are then ported to C#. If a problem is reported on the free mailing list (instead of on the ticketing system for pa

Re: [iText-questions] desperatly trying to run Code sample 4.1: Signing a document using PKCS#11

2013-01-11 Thread iText Info
Op 11/01/2013 12:12, Marot Laurent schreef: > 134:String alias = (String)ks.aliases().nextElement(); > Exception in thread "main" java.util.NoSuchElementException Looks as if nothing can be found in the slot. Are you using the correct slot? What makes you think the slot with inde

Re: [iText-questions] PdfPKCS7.IsRevocationValid bug report

2013-01-11 Thread aszomor
Oops --> still there in itextsharp-all-5.3.5 package ! Our TSA provider use HashSha256 not HashSha1 ! TEST CODE: -- // // We trying to find the BUGs // #region Revised pk.IsRevocationValid() System.Console.Out.WriteLine("Start test of IsRevocationValid() in PdfPKCS7.cs"); X509Certificat

[iText-questions] desperatly trying to run Code sample 4.1: Signing a document using PKCS#11

2013-01-11 Thread Marot Laurent
Hello, Still discovering Digital Signatures for PDF documents, I'm trying to run Code sample 4.1 from http://itextpdf.com/book/digitalsignatures20121017.pdf Getting following error when running code from Netbeans on windows2003 32bit platform (java 7 & iText 5.3.4) : public static void main (S

[iText-questions] [SPAM] Re: How to skip text rendering when parsing image on text pdf file

2013-01-11 Thread mkl
Abedellatif Hussein, Abedellatif Hussein wrote > IRenderListener,when do we know that it finished parsing the text content? You know that when the PdfReaderContentParser method processContent (Java names, C# may differ slightly) call returns, it finished parsing the text of the given page. If you

Re: [iText-questions] Code sample 4.3: getting the slot used for the iKey 4000

2013-01-11 Thread Marot Laurent
I suppose it's sun.security.pkcs11.wrapper.PKCS11 -Message d'origine- De : Marot Laurent [mailto:laurent.ma...@alliacom.com] Envoyé : vendredi 11 janvier 2013 11:22 À : Post all your questions about iText here (itext-questions@lists.sourceforge.net) Objet : [iText-questions] Code sample 4

[iText-questions] Code sample 4.3: getting the slot used for the iKey 4000

2013-01-11 Thread Marot Laurent
Hello, Still wondering what PKCS11 Object is used in PKCS11 tmpPKCS11 = null; From Code sample 4.3: getting the slot used for the iKey 4000 in Digital Signatures for PDF documents. Laurent Le papier est un support de communication naturel, renouvelable et rec

[iText-questions] PdfPKCS7.IsRevocationValid bug report

2013-01-11 Thread aszomor
Dear Developers, I reported to you a little bug in IsRevocationValid method of PdfPKCS7.cs many times, why you did not repair it ? This little bug still is there in itextsharp-all-5.3.3 package, please repair it into next version. BAD LINE 1103: CertificateID tis = new CertificateID(Certifi

Re: [iText-questions] [SPAM] Re: LTV

2013-01-11 Thread iText Info
Op 10/01/2013 19:07, Leonard Rosenthol schreef: > 1. "a valid CRL or OSCP response for every certificate" also includes > signatures over CRLs and OCSPs., not just the signature certificate. > > 2. LTV may be enabled when all collaterals are embedded in the > signatures and not DSS (I just

Re: [iText-questions] PAdES Signature with SmartCard

2013-01-11 Thread iText Info
Op 10/01/2013 17:41, Danilo Nicolò schreef: > I mean PAdES-2. Is there any example of sign with smartcard? Seems like you've overlooked the link to the documentation: http://itextpdf.com/book/digitalsignatures -- Master H