[iText-questions] Signing PDF

2014-08-08 Thread Valentin Ts. Ivanov
OK, I found this problem has already been discussed here. -- Want fast and easy access to all the code in your enterprise? Ind

Re: [iText-questions] Applying digital signatures to existing PDFs

2013-08-15 Thread Valentin Ts. Ivanov
Hi Anu, What exactly the problem is? You can't sign the PDF or can't determine the coordinates of the Rectangle? There is a lot of examples HERE. I think you just need to use : appearance.setVisibleSignature(new Rectangle(72, 732, 144, 780), 1, "fi

Re: [iText-questions] How to encrypt pdf

2013-07-22 Thread Valentin Ts. Ivanov
Hi, any help will be appreciated! Best Regards, Valentin. -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and

[iText-questions] How to encrypt pdf

2013-07-14 Thread Valentin Ts. Ivanov
Hi , according to this thread, the currently used algorithm for encryption/ decryption is not supported any more? So , how to encrypt/decrypt pdf files using PKCS11 provider? (SunPKCS11 smart card provider)

Re: [iText-questions] Creating BaseFont problems

2013-07-10 Thread Valentin Ts. Ivanov
Hi, Not sure if it helps , but after the code you provided I use one line more, for example: public static final String FONT = "C:/myproj/26062013/source/proj/target/classes/fonts/arial.ttf"; .. .. BaseFont bf; bf = BaseFont.createFont(FONT, BaseFont.WINANSI, BaseFont.NOT_EMBEDDED); ffs.

[iText-questions] Error upon pdf decryption

2013-07-10 Thread Valentin Ts. Ivanov
Hi, decryption/encryption using BC 1.46 an iText 5.2.1 is working fine. Encryption using BC 1.49 and iText 5.4.2 is working fine, but decrypting throws : com.itextpdf.text.exceptions.InvalidPdfException: cannot create cipher: No such algorithm: 1.2.840.113549.3.2 at com.itext

Re: [iText-questions] [SPAM] Error on PDF decryption

2013-07-08 Thread Valentin Ts. Ivanov
Hi, I debugged it down to EnvelopedDataHelper.createCipher(ASN1ObjectIdentifier algorithm); In my case the algorithm is 1.2.840.113549.3.2. This value comes from the very beginning (I guess at the time of encryption), from the encrypted document as "messageAlgorithm", as well as "keyEncAlg" whi

[iText-questions] Error on PDF decryption

2013-07-08 Thread Valentin Ts. Ivanov
Hi, I debugged it down to EnvelopedDataHelper.createCipher(ASN1ObjectIdentifier algorithm); In my case the algorithm is 1.2.840.113549.3.2. This value comes from the very beginning (I guess at the time of encryption), from the encrypted document as "messageAlgorithm", as well as "keyEncAlg" whi

[iText-questions] Error on PDF decryption

2013-06-30 Thread Valentin Ts. Ivanov
So, I don't think the complete stack trace shows anything else, but the presence of GUI. Any ideas why the decryption only throws such an exception? Regards, Valentin -- This SF.net email is sponsored by Windows: Build f

Re: [iText-questions] [SPAM] Re: [SPAM] Error on PDF decryption

2013-06-27 Thread Valentin Ts. Ivanov
Hi, because I don't know how to use the stuff like uploading files, using quotes, using animation icons. How to do this if directly send message to the mailing-list? -Original Message- From: iText Software [mailto:i...@1t3xt.info] Sent: Thursday, June 27, 2013 1:16 PM To: Post all your

Re: [iText-questions] [SPAM] Re: [SPAM] Error on PDF decryption

2013-06-27 Thread Valentin Ts. Ivanov
Here is the stack trace using mailing-list: com.itextpdf.text.exceptions.InvalidPdfException: cannot create cipher: No such algorithm: 1.2.840.113549.3.2 at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:649) at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:187) a

[iText-questions] Error on PDF decryption

2013-06-27 Thread Valentin Ts. Ivanov
Here is the stack trace using mailing-list: com.itextpdf.text.exceptions.InvalidPdfException: cannot create cipher: No such algorithm: 1.2.840.113549.3.2 at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:649) at com.itextpdf.text.pdf.PdfReader.(PdfReader.