You should use WINCER_SIGNED. As for the error a line number is required.
Paulo
> -----Original Message-----
> From: Samuel Joseph [mailto:[email protected]]
> Sent: Tuesday, June 23, 2009 5:54 PM
> To: [email protected]
> Subject: [iText-questions] SELF_SIGNED or WINCER_SIGNED?
>
> Can you let me know how to use the external signature i.e. corporate
> certificate to sign and certify the document? Should I be
> using SELF_SIGNED
> mode or the WINCER_SIGNED mode? I exported our corporate
> certificate into PFX
> format and importing inthe code as specified in the examples.
>
> When I use the SELf_SIGNED mode, the code works fine but gives me
> the "Document wants to print.." popup. Is it because I am
> trying to self sign
> the PDF and is altering the document, making the pdf unverifiable?
>
> Then I tried using WINCER_SIGNED but it throws an exception as below:
>
> java.lang.NoSuchFieldError: INSTANCE
> at
> com.lowagie.text.pdf.PdfPKCS7.getEncodedPKCS7(Unknown Source)
> at com.dlh.etc.juniper.reports.PDFCreator.addCert(PDFCreator
> r.java:129)
>
>
> Any idea what am I doing wrong?
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/