Hopefully an easy question this..
I have a Windows Forms DocumentViewer control which I have populated with a number of images. When I call the Save method and pass it a TiffEncoder it creates a multipage Tiff, however if I pass it a PDFEncoder I only get the last image in the control in a PDF.
How can I create a PDF containing all the images in the DocumentViewer instead of just the last item?
I have seen the PDFEncoder class has its own save that can take an ImageSource as well as a single image but can't see any way to get the underlying ImageSource for the DocumentViewer. That said I would still prefer to use the DocumentViewer.Save method if possible.
Thanks!