Dear Support,
I have a following code snippet that converts a Pdf to Xps and then again back to PDF.
With Aspose Pdf on .Net version 10.3.0 processing time is less than 20 seconds, but on version 10.7.0, takes more than 30 secs. Is this a known bug? What is the faster way to convert pdf-xps-pdf on 10.7.0? Attached document.
Aspose.Pdf.License pdfLicense = new Aspose.Pdf.License();
pdfLicense.SetLicense(“xyz.Aspose.Pdf.lic”);Thank you,
pdfLicense.Embedded = true;
//open document
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(filename);
//Get page collection
Aspose.Pdf.PageCollection pageCollection = pdfDocument.Pages;
//during conversion process, the validation is also performed
// Instantiate XPS Save options
Aspose.Pdf.XpsSaveOptions saveOptions = new Aspose.Pdf.XpsSaveOptions();
pdfDocument.Save(root + “/” + id + “.xps”, saveOptions);
//save back to pdf
// Instantiate XpsLoadOptions object using XPS load option
Aspose.Pdf.XpsLoadOptions options = new Aspose.Pdf.XpsLoadOptions();
// Create document object
Aspose.Pdf.Document document = new Aspose.Pdf.Document(root + “/” + id + “.xps”, options);
// Save the resultant PDF document
document.Save(root + “/” + id + “.pdf”);
Sireesha