Hi,

is it possible to put the /ProcSet Entry to the /AP dictionary at the signature 
process with itextsharp?
I tried the following code, but it didn“t work:

PdfStamper stamper = PdfStamper.CreateSignature(reader, ms, '\0', null, true);
PdfSignatureAppearance appearance = stamper.SignatureAppearance;
appearance.SetVisibleSignature("Signature001");
appearance.Location = this.location;
appearance.Reason = this.reason;

MakeSignature.SignDetached(...)

PdfIndirectReference iref = 
reader.AcroFields.GetNormalAppearance("Signature001");
PdfDictionary ap = (PdfDictionary)reader.GetPdfObject(iref.Number)
PdfArray procset = new PdfArray();
procset.Add(PdfName.PDF);
procset.Add(PdfName.TEXT);
procset.Add(PdfName.IMAGEB);
procset.Add(PdfName.IMAGEC);
procset.Add(PdfName.IMAGEI);
ap.Put(PdfName.PROCSET, procset);

best regards,
Flo


------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&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