Hi, using this code:
using (Stream inputPdfStream = new FileStream("mypdf.pdf", FileMode.Open,
FileAccess.Read, FileShare.Read))
using (Stream inputImageStream = new FileStream("sunset.jpg",
FileMode.Open, FileAccess.Read, FileShare.Read))
using (Stream outputPdfStream = new FileStream("mypdf2.pdf",
FileMode.Create, FileAccess.Write, FileShare.None))
{
var reader = new PdfReader(inputPdfStream);
var stamper = new PdfStamper(reader, outputPdfStream);
var pdfContentByte = stamper.GetOverContent(1);
Image image = Image.GetInstance(inputImageStream);
image.ScaleAbsolute(50, 50);
image.SetAbsolutePosition(490, 160);
pdfContentByte.AddImage(image);
stamper.Close();
}
given by someone else to me. I was able to insert an image but it corrupted
the signatures that existed on the form. Then I changed this line:
var stamper = new PdfStamper(reader, outputPdfStream);
to
var stamper = new PdfStamper(reader, outputPdfStream,'1',true);
and the signatures were not corrupt.
I'm just trying to figure out why they were not corrupted with this second
new line. By corrupt I just mean invalid. I can still see them.
--
View this message in context:
http://www.nabble.com/Corrupting-handwritten-signatures-Question-tp22225478p22225478.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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