Hi,
I've been looking inside the PDF and the reason is passed correctly and put
in the signature dictionary ("Aprovació del document"):
<</Contents <00...00>/Type/Sig/SubFilter/adbe.pkcs7.sha1/Name(PERE JOSEPH
RODRIGUEZ1377769222868)/M(D:20130829114022+02'00')/ByteRange [0 7746 27748
2707 ]
/Filter/Adobe.PPKMS/Reason
(Aprovació del document)>>
The problem seems to be in the SignatureAppearance method. I'll try to find
the bug tomorrow, so now i'm gone....
I think this functionality should be backwards compatible, i've been
looking at the manual you sent and there are ways to personalize the
widget. I may do a new code to adapt it to work...
Thanks
Pere Joseph Rodríguez
Servei de Seguretat
Direcció General de Tecnologia I Comunicacions
Govern de les Illes Balears
tel 971 177601
ext 67892
De: TvT <[email protected]>
Para: Post all your questions about iText here
<[email protected]>
Fecha: 29/08/2013 14:29
Asunto: Re: [iText-questions] SignatureAppearance reason null?
So can you see the reason in the pdf file itself? (If you open it with a
text editor?)
You are talking about the text in the widget annotation?
If so, you have to draw it from scratch as explained in
http://itextpdf.com/book/digitalsignatures
2013/8/29 Pere Joseph Rodríguez <[email protected]>
The code is something like this. At the preclose phase the reason is
already set....
PdfSignature dic = new PdfSignature
(PdfName.ADOBE_PPKMS,
PdfName.ADBE_PKCS7_SHA1);
dic.setDate(new PdfDate(sap.getSignDate()));
dic.setName(certificate.getName()+sysdate);
if (sap.getReason() == null)
sap.setReason("Aprobación del documento");
if (sap.getReason() != null)
dic.setReason(sap.getReason());
sap.setCryptoDictionary(dic);
sap.preClose(exc);
sap.close(dic2);
Pere Joseph Rodríguez
Servei de Seguretat
Direcció General de Tecnologia I Comunicacions
Govern de les Illes Balears
tel 971 177601
ext 67892
De: TvT <[email protected]>
Para: Post all your questions about iText here
<[email protected]>
Fecha: 29/08/2013 13:00
Asunto: Re: [iText-questions] SignatureAppearance reason null?
maybe the reason is null? Please provide more information....
2013/8/29 Pere Joseph Rodríguez <[email protected]>
Hi,
i'm trying to sign a pdf in ISO old format (not PADES-BES) ,
and the
resulting pdf shows Signature reason as null in the default
signature
appearance. Is it a bug?
Regards,
Pere Joseph Rodríguez
Servei de Seguretat
Direcció General de Tecnologia I Comunicacions
Govern de les Illes Balears
tel 971 177601
ext 67892
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
2012,
more!
Discover the easy way to master current and previous Microsoft
technologies
and advance your career. Get an incredible 1,500+ hours of
step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered
with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
more!
Discover the easy way to master current and previous Microsoft
technologies
and advance your career. Get an incredible 1,500+ hours of
step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
more!
Discover the easy way to master current and previous Microsoft
technologies
and advance your career. Get an incredible 1,500+ hours of
step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php