Answers: 
- the cropBox of that document is smaller than mediaBox, I think the visible 
signature is there but reader don“t shows it

The problem still remains. How can a put the signature rectangle on the 
document to be visible?

- Or change the code to us the CropBox instead of the MediaBox.

How can I do that. What lines of code shoul be changed on iTextSharp to do this?

Even if the signature rectange is set manually, the rectangle is not shown in 
the document.

sap.SetVisibleSignature(new iTextSharp.text.Rectangle(10,10,100,100),1, null);


I have tried to change the MEDIABOX name with CROPBOX on PdfReader class but 
nothig it happens

public Rectangle GetPageSize(PdfDictionary page) {
PdfArray mediaBox = (PdfArray)GetPdfObject(page.Get(PdfName.MEDIABOX)); // 
changed with PdfName.CROPBOX
return GetNormalizedRectangle(mediaBox);
}

Please help me on this problem with more detailed instructions.

Thanks.

----
Original
---

Hi,

I'm using the code listed here to sign PDF files 
(http://itextpdf.sourceforge.net/howtosign.html)

Works great but for some PDF documents, a visible digital signature is hidden. 

As example, this document (http://victordomain.ehost.us/testinvisible.pdf) 
cannot be signed using a "visible" digital signature (the document is signed 
succesfully but the signature rectangle is hidden).

Any ideas?

Victor
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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/

Reply via email to