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

Free Support Forum - aspose.com

PDF to XPS Conversion Time

I am evaluating the Aspose suite and in particular the PDF package and the conversion to XPS. I am experiencing long conversion times. I have notices another entry that hasn't been answered yet. I am using the following code:

Aspose.Pdf.Document doc = new Aspose.Pdf.Document("C:\\Temp\\Bank001.pdf");

Aspose.Pdf.XpsSaveOptions saveOptions = new Aspose.Pdf.XpsSaveOptions();

FileStream fs = new FileStream("C:\\Temp\\xpsBank001.xps", FileMode.Create);

DateTime beginTime = DateTime.Now;

doc.Save(fs, saveOptions);

TimeSpan conversionTime = DateTime.Now - beginTime;

Console.WriteLine("Time to convert " + conversionTime.ToString());


The time is over 20 seconds. The file is a single page which I will include.

Also, when I run the code, a lot of debug information is printed out. What is the setting to get rid of that?

Thank you,

Jeff Ballacne

Hi Jeff,

Thank you for sharing the template PDF Document and sample code.

I have tested your scenario with your template file and sample code and it take 8 seconds to 10 seconds for convert template PDF Document into XPS format. I think the issue may be occurring because of the evaluation mode. Please use the below link to acquire a temporary license for testing of the product.

Get a Temporary License

Please feel free to contact support in case of any problem.

Thanks & Regards,