We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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)


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 demo for better understanding of this behaviour. Concatenate PDF

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