Free Support Forum -

Converting specific xps document to tiff fails

The conversion of attached xps produces tiff file with blank content.
Aspose version 10.5.0

The code I use:

Resolution resolution = new Resolution(300);
TiffSettings tiffSettings = new TiffSettings();
tiffSettings.Compression = CompressionType.CCITT4;
tiffSettings.Depth = ColorDepth.Format1bpp;
tiffSettings.Shape = Aspose.Pdf.Devices.ShapeType.None;
tiffSettings.SkipBlankPages = false;
var tiffDevice = new TiffDevice(resolution, tiffSettings);

Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(“test.xps”);
tiffDevice.Process(pdfDocument, “output.tif”);

Hi there,

Thanks for your inquiry. Please use XpsLoadOptions() parameter for loading XPS file, it will resolve the issue. However I have noticed that image quality of output TIFF is not good, so logged a ticket PDFNEWNET-38919 for further investigation and resolution. We will notify you as soon as it is resolved.


Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document("test.xps", new XpsLoadOptions());



Please feel free to contact us for any further assistance.

Best Regards,