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

Free Support Forum - aspose.com

Open XPS with Pdf.Document

Dear Support,


I use Aspose.Pdf.Documento to open a XPS file, and then I save it as PDF.
I use the following code and everithing work, except with the attached xpf, that I can’t open because the Document constructor thorws an exception : "Cannot fine [Content Type].xml
How can I open this file?


var aa = new XpsLoadOptions();
Aspose.Pdf.Document a = new Aspose.Pdf.Document(“c:\a.xps”, aa );
var s = new PdfSaveOptions();
a.Save(“c:\b.pdf”, s);

Hi Fabio,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.Pdf.

I am able to reproduce your mentioned issue regarding conversion of XPS to PDF conversion using your template file. The issue has been registered in our issue tracking system with issue id: PDFNEWNET-34202 for rectification. You will be notified via this forum thread regarding any updates against your reported issue.

Sorry for the inconvenience,

The issues you have found earlier (filed as PDFNEWNET-34202) have been fixed in Aspose.Pdf for .NET 9.6.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.