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?