Problem sending PDF as stream using iTextSharp
- From: "antonyliu2002@xxxxxxxxx" <antonyliu2002@xxxxxxxxx>
- Date: Wed, 11 Jul 2007 16:31:15 -0000
I have no problem writing PDF file to hard drive on the fly with
iTextSharp, but have had no luck in sending PDF as a stream in my
asp.net web application.
I am simply copying the example at
http://itextsharp.sourceforge.net/examples/Chap0105.cs
But, Adobe Acrobat reader complains that the file has been damaged or
cannot be opened, or says something like "if the file was sent as an
email attachment, it was not properly decoded" or something to that
effect.
At the www.asp.net forum, http://forums.asp.net/p/1093198/1643956.aspx#1643956
, someone says that we need to reset the value of the memory stream
position to 0. I tried that with no luck.
Any idea about how to shoot this problem? Thanks.
.
- Follow-Ups:
- Re: Problem sending PDF as stream using iTextSharp
- From: antonyliu2002@xxxxxxxxx
- Re: Problem sending PDF as stream using iTextSharp
- Prev by Date: Re: Reach components in content using javascript
- Next by Date: Re: 2 questions please
- Previous by thread: Re: Setting up a Load Balanced Web Farm
- Next by thread: Re: Problem sending PDF as stream using iTextSharp
- Index(es):
Relevant Pages
|