Marc, Marc Moore wrote > Seems the GetBuffer method is a problem. I don't understand why, but I'll > take the result!
Have a look at msdn: http://msdn.microsoft.com/en-us/library/system.io.memorystream.getbuffer.aspx: > Note that the buffer contains allocated bytes which might be unused. For > example, if the string "test" is written into the MemoryStream object, the > length of the buffer returned from GetBuffer is 256, not 4, with 252 bytes > unused. To obtain only the data in the buffer, use the ToArray method; > however, ToArray creates a copy of the data in memory. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Using-iTextSharp-to-write-data-to-PDF-works-great-but-Acrobat-Reader-asks-Do-you-want-to-save-changee-tp4656443p4656493.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ iText-questions mailing list [email protected] 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
