Hi!
Using iTextSharp 5.3.4.0, I'm having difficulty working with PdfStamper and
MemoryStream.
The MemoryStream is always empty.
PdfReader pdfReader = new PdfReader(Server.MapPath(@"Document.pdf"));
MemoryStream memoryStream = new MemoryStream();
PdfStamper pdfStamper = PdfStamper.CreateSignature(pdfReader,
memoryStream, '\0');
//...
pdfStamper.Writer.CloseStream = false;
pdfStamper.Close();
byte[] bt = memoryStream.GetBuffer(); //.ToArray()
pdfReader.Close();
Download Project (full source
code)<https://www.dropbox.com/s/xajbr7wi5159snv/PdfStamper_MemoryStream_Example.zip>
How can I solve this problem? Thank you!
Bruno Pacola
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&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