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

Free Support Forum - aspose.com

Convert XPS to PDF using Java via Aspose.Page for Java - image is not converted

We now have a picture, which is in xps format. When converting to pdf, the picture is not converted. If the content of xps is a plain word such as a document, it can be converted normally. When the content of the xps file is an image, it is converted. The error occurred, the generated pdf document has no content, it is blank, what is the reason? I have uploaded the original document and the converted document, please help me find out why.转换问题.zip (69.9 KB)


This issue seems similar which you have already reported in other thread and it was logged under ticket ID PAGEJAVA-37. We have investigated the scenario and found that your sample document contains image in Windows Media Photo format (.wdp). Unfortunately, this format is quite specific for Windows systems. We could not find any open source solution for decoding it. Neither we have found specification. Thereby our own implementation from scratch seems to be unfeasible.

Conversion of this format is supported only by .NET version under framework starting from 3.0.

As for now the fix will provide informative exceptions and it will be available in upcoming version of Aspose.Page for Java 19.7.