Switch the filestream with a memorystream.
MemoryStream memStream = new MemoryStream();
PdfWriter wri = PdfWriter.GetInstance(doc, memStream);
...
return memStream.ToArray();
More Related Contents:
- Convert HTML to PDF in .NET [closed]
- How to convert HTML to PDF using iTextSharp
- Can’t get Czech characters while generating a PDF
- how can i get text formatting with iTextSharp
- Reading pdf content using iTextSharp in C#
- Reading PDF content with itextsharp dll in VB.NET or C#
- How To Remove Whitespace on Merge
- Merging multiple PDFs using iTextSharp in c#.net
- How to merge multiple pdf files (generated in run time)?
- Generate a PDF that automatically prints
- Getting Coordinates of string using ITextExtractionStrategy and LocationTextExtractionStrategy in Itextsharp
- How to return PDF to browser in MVC?
- Convert arabic”unicode” content html or xml to pdf using itextsharp
- using ITextSharp to extract and update links in an existing PDF
- Right aligning text in PdfPCell
- iTextSharp – Sending in-memory pdf in an email attachment
- Add Header and Footer for PDF using iTextsharp
- Can itextsharp.xmlworker render embedded images?
- Itextsharp: Adjust 2 elements on exactly one page
- iTextSharp – How to get the position of word on a page
- Retrieve the respective coordinates of all words on the page with itextsharp
- iTextSharp Creating a Footer Page # of #
- Convert Pdf file pages to Images with itextsharp
- Extract image from PDF using itextsharp
- Highlight words in a pdf using itextsharp, not displaying highlighted word in browser
- Returning iTextSharp PDF as memorystream causes StreamNotSupported
- HTML to List using XMLWorker
- FromBody string parameter is giving null
- How to set up a Web API controller for multipart/form-data
- Selenium Error – The HTTP request to the remote WebDriver timed out after 60 seconds