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

Free Support Forum - aspose.com

Convert XPS to TIFF

Quick question! Can XPS files be converted to TIFF? If so, which library would I use?


Hi Doug,

Thanks for contacting support.

Aspose.Pdf is PDF creation and manipulation API. It supports the feature to load XPS file and save the output in PDF format and it also offers the feature to load PDF file and transform it to TIFF format. So as per your requirement, you can use this API to load XPS file and save the output in TIFF format. Please try using the following code snippet to accomplish your requirement.


//load XPS file <o:p></o:p>

Document pdfDocument = new Document(@"C:\pdftest\sampletest.xps", new XpsLoadOptions());

//create Resolution object

Resolution resolution = new Resolution(300);

//create TiffSettings object

TiffSettings tiffSettings = new TiffSettings();

tiffSettings.Compression = CompressionType.None;

tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;

tiffSettings.SkipBlankPages = false;

//create TIFF device

TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);

//convert a particular page and save the image to stream