Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

XPS to PDF conversion

$
0
0
Hi I am using the following code to convert XPS to PDF

// Create document object
// Instantiate LoadOption object using XPS load optioncom.aspose.pdf.LoadOptions options = new com.aspose.pdf.XpsLoadOptions();// Create document objectcom.aspose.pdf.Document document = new com.aspose.pdf.Document("c:/printoutput.xps", options);// Save the resultant PDF documentdocument.save("c:/resultant.pdf");
I get the following error when trying to do conversion

class com.aspose.ms.System.d: Can't find the FixedDocumentSequence part
com.aspose.o.h.a(Unknown Source)
aspose.pdf.html.HtmlWeb.convert$25dd47b3(Unknown Source)
com.aspose.pdf.ADocument.a(Unknown Source)
com.aspose.pdf.ADocument.<init>(Unknown Source)
com.aspose.pdf.Document.<init>(Unknown Source)
co.za.test.conversion.XpsToPdfConverter.xpsToPdfAspose(XpsToPdfConverter.java:30)
co.za.test.conversion.XpsToPdfConverter.main(XpsToPdfConverter.java:51)
	at com.aspose.o.h.a(Unknown Source)
	at aspose.pdf.html.HtmlWeb.convert$25dd47b3(Unknown Source)
	at com.aspose.pdf.ADocument.a(Unknown Source)
	at com.aspose.pdf.ADocument.<init>(Unknown Source)
	at com.aspose.pdf.Document.<init>(Unknown Source)
	at co.za.test.conversion.XpsToPdfConverter.xpsToPdfAspose(XpsToPdfConverter.java:30)
	at co.za.test.conversion.XpsToPdfConverter.main(XpsToPdfConverter.java:51)


Has anyone ever came across this exception? 

Viewing all articles
Browse latest Browse all 3131

Trending Articles