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

Free Support Forum - aspose.com

Combining output images from convertpdf -> image

I'm trying to take a pdf file...using pdfconverter and take the resulting GetNextImages, and output them to the Response.outputstream.

However, I'm finding that I can only get the first page converted and displayed.

Is there some way of looping through all pages, and displaying all images on screen (without creating files)?

I was trying something like this but it did not work:

MemoryStream ms = new MemoryStream();

MemoryStream finalstream = new MemoryStream();

while (pdfConverter.HasNextImage())


pdfConverter.GetNextImage(ms, System.Drawing.Imaging.ImageFormat.Png);






Hi Mike,

Aspose.Pdf.Kit only allows you to convert the PDF file to images; it doesn’t allow you to merge the output images. However, you can convert the PDF pages to images and keep each image in the MemoryStream; You can also add all of those individual streams to an array of MemoryStreams. In order to show all of those images at once, you can use multiple image controls and bind individual image to the image control accordingly.

I hope this helps. If you have any further questions, please do let us know.

Thanks for the response. That will probably be the route that I go, if I decide to continue down this path.