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 <tvtre...@nepatec.de>
Para:   Post all your questions about iText here
            <itext-questions@lists.sourceforge.net>
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 <seguret...@dgtic.caib.es>

      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
      iText-questions@lists.sourceforge.net
      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
iText-questions@lists.sourceforge.net
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
iText-questions@lists.sourceforge.net
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

Reply via email to