Feeding to browser / concatenation

I have code (see below) that creates an array of FileStream, adds PDFs to it, and then creates an Output stream, and then uses PDFFileEditor to concatenate PDFs. I would like to direct the result of the concatenation to a browser window (as Save does using Generator.SaveType.OpenInBrowser) instead of to a file.

Can this be done? If so, how?

_______________________________________________________

Dim PDFS(20) As FileStream

'Create output stream object that would contain the final PDF file
Dim outStream As FileStream = New FileStream(ClientFolder & str_WorkingFileName, FileMode.Create)

'Instantiate PdfFileEditor object
Dim pdfEditor As Facades.PdfFileEditor = New Facades.PdfFileEditor()

'Call Concatenate method of PdfFileEditor object to concatenate all input streams
pdfEditor.Concatenate(PDFS, outStream)

Hi,

Thanks for using our products.

In order to accomplish your requirement, once the PDF files are concatenated, save the output in Stream Object, then create an array to hold the output and finally write its contents to HttpResponse object. Please check out the following article for better understanding of this behavior. Concatenate PDF documents in C#

In case of any further query, please feel free to contact. We apologize for your inconvenience.