We are using the Aspose.Pdf product in order to export an Xps file as a PDF file.
The code for this is very simple, its only 3 lines of code:
LoadOptions options = new XpsLoadOptions();
Document document = new Document(xpsFilePath, options);
This bit of code is included in a bigger project which is deployed on a virtual machine for our multiple clients (each client has his own virtual machine).
The problem is that for several clients, the 2nd line of code is taking more than a minute to complete, while for our other clients, this code completes in less than a second…
We tried to increase the virtual machine’s resources but in vain.
Does anyone have any idea on what could be wrong? Are we missing a line of code that could optimize the creation of the Document?
We have really no idea on what makes the code longer to complete in one case and almost instant in other cases…
Thanks in advance for your help