Converting from PDF to XPS Performance Issue

I ran a conversion of a 1200 pages PDF file to XPS file with the following code. It took about 30 mins on a Windows 2008 R2 Server with I5 3.1GHz CPU and 8GB of RAM.

private static void ConvertPdftoXpsWithAspose(string srcPdffile, string outXpsFile)
{
var license = new Aspose.Pdf.License();
license.SetLicense("D:\\Temp\\Aspose.Pdf.lic");
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(srcPdffile);
Aspose.Pdf.XpsSaveOptions saveOptions = new Aspose.Pdf.XpsSaveOptions();
FileStream fs = new FileStream(outXpsFile, FileMode.Create);
doc.Save(fs, saveOptions);
}

Is there any way to speed up the conversion?

Hi Harry,


Thanks for your inquiry. Although the processing time depends upon the PDF document contents/size and system resources. However, can you please share your sample document here? So we will test it at our end and provide you more information accordingly.

Sorry for the inconvenience faced.

Best Regards,