Access and Export Pages in Multipage TIFF, GIF, and Other Formats using C# and Java

export multipage images to other formats

Aspose.Imaging has proved to be a powerful API for working with a variety of image formats. Along with single-page images, Aspose.Imaging also supports manipulating multipage images including GIF, TIFF, PSD, DICOM, CDR, and WebP. You can access pages of a multipage image and export them to a single page or another multipage image format. In this article, I’ll demonstrate how to access pages in multipage GIF, TIFF, PSD, etc and export them to other formats programmatically in C# and Java.

Access Pages in a Multipage Image using C# or Java

To access pages in a multipage image (GIF, TIFF, etc.), Aspose.Imaging provides the IMultipageImage interface. It allows you to get each page of the multipage image. You can explore more about the IMultipageImage interface from the following API reference articles.

The following code samples show how to access pages in a multipage TIFF.

C#

Java

Export Multipage Images in C# and Java

Aspose.Imaging allows you to export a multipage image to another multipage image or a page from a multipage image to a single page image format, i.e. PNG, JPG, etc. You can specify the page number or a range of page numbers to export a multipage image to a single page or another multipage format respectively.

Export Multipage Image to a Single Page Image

The following code samples show how to export a page from a multipage TIFF to a PNG image in C# and Java.

C#

Java

Export Multipage Image to Another Multipage Format

The following code samples show how to export a multipage GIF to a multipage TIFF in C# and Java.

C#

Java

Conclusion

In this article, you have learned how to export multipage GIF, TIFF, PSD, DICOM, CDR, and WebP images using C# and Java. Furthermore, conversion of multipage images to raster images or other multipage images is also covered. You can explore more about Aspose.Imaging using documentation.

Have any question?

In case you would have any questions or queries, feel free to let us know via our forum.

See Also