Hi,
I was have difficulties earlier using a MemoryStream with a PdfReader object.
I seem to have got it working now by using a Byte[], even though
PdfReader has an overload of (stream isp). Question is does this class not
work with a MemoeyStream and basically am I doing this correctly using this
code:
MemoryStream pdfstream = new MemoryStream();
byte[] pdfarray = (byte[])dr["Data"]; // From database
pdfstream.Write(pdfarray, 0, pdfarray.Length);
pdfstream.Seek(0, System.IO.SeekOrigin.Begin);
PdfReader rdr = new ITSP.PdfReader(pdfarray);
Document doc = new Document(PageSize.A4, 0, 0, 0, 0);
PdfWriter.GetInstance(doc, pdfstream);
PDFBusinessData_Print2(doc);
//loop thru AcroFields using a stamper
If anyone has any good C# examples of using iTextSharp with memory streams then
please let mw know, I'm really
struggling to make progress with this.
Regards
Dave
________________________________
E-Mail Disclaimer
The information contained in this email is intended solely for the
recipient(s). Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any form of disclosure, reproduction, distribution
or any action taken or refrained from in reliance on it, is prohibited. Please
notify the sender of this E-Mail immediately. We also like to inform you that
communication via email over the internet is insecure because third parties may
have the possibility to access and manipulate emails.
Der Inhalt dieser E-Mail ist ausschliesslich fuer den/die bezeichneten
Empfaenger bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder
dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der
Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts
dieser E-Mail unzulaessig ist. Wir bitten Sie, sich in diesem Fall mit dem
Absender der E-Mail in Verbindung zu setzen. Wir moechten Sie ausserdem darauf
hinweisen, dass die Kommunikation per E-Mail ueber das Internet unsicher ist,
da fuer unberechtigte Dritte grundsaetzlich die Moeglichkeit der Kenntnisnahme
und Manipulation besteht.
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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