Hi,
We are using Aspose.Words 24.2 to convert .docx to PDF. It’s taking around 8 minutes to convert .docx file to PDF.
Can you please check it why it’s taking long time to get pdf rendition?
Regards,
Pavan
Hi,
We are using Aspose.Words 24.2 to convert .docx to PDF. It’s taking around 8 minutes to convert .docx file to PDF.
Can you please check it why it’s taking long time to get pdf rendition?
Regards,
Pavan
Input file size is around 13 MB. I’m not able to upload the file.
It’s saying that file is too big (maximum size is 48.8 MB).
Is there any way to share the file?
Regards,
Pavan
We don’t use google drive for official purposes.
Can you please share a drive to upload the file?
Regards,
Pavan
Can you please share a drive to upload the file?
Our customers are blocked due to this issue. It’s critical for them.
Regards,
Pavan
@rnara The maximum size on the forum is around 5MB. You can zip your file and try to upload it again, or you can use 3rd party services like google drive, dropbox etc.
@rnara I tested this document on versions 24.2 and 25.6 of Aspose.Words and by converting with MS Word. The conversion took about 1.5 minutes on my side for all of them. The problem seems to be environment related, but not Aspose.Words performance.
I have tested this document with Aspose 24.2 and 25.1 standalone program.
It’s taking around 8 minutes.
We run this program in multiple environments. It’s returning the same result.
Here is the sample code snippet.
Document doc = new Document("C:\\In.docx");
doc.save("C:\\Out.pdf");
Regards,
Pavan
@rnara I created a simple console application with the following code:
using Aspose.Words;
using System.Diagnostics;
License wordsLicense = new License();
wordsLicense.SetLicense("Aspose.Words.NET.lic");
Stopwatch stopwatch = Stopwatch.StartNew();
Document doc = new Document("In.docx");
doc.Save("output.pdf");
stopwatch.Stop();
Console.WriteLine($"Operation took {stopwatch.ElapsedMilliseconds} ms");
Console.ReadLine();
Here are my results:
24.2 version - 173475 ms
25.6 version - 47164 ms
Intel Core i5-13400F, 32612 МБ (DDR5 SDRAM), Windows 10
We are using Aspose.Words Java version. Can you please try with Java?
Additionally, I saw a notable improvement in performance with 25.6 compared to 24.2.
Can you please check why it’s taking around 3 minutes with 24.2?
Regards,
Pavan
@rnara It may have something to do with the first time I ran it. The next time I ran it, it was 141649. We’ve improved content processing for .NET, especially for image processing, so the new versions is a bit faster.
Here is the code for Java:
long startTime = System.currentTimeMillis();
Document doc = new Document("In.docx");
doc.save("output.pdf");
long endTime = System.currentTimeMillis();
long duration = endTime - startTime;
System.out.println("Execution time: " + duration + " ms");
Results:
24.2 version - 122764 ms
25.6 version - 143764 ms
@rnara The result in 8 minutes was never achieved. I will discuss the Java runtime with the developers and get back to you tomorrow.
@rnara
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSJAVA-3133
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
The issues you have found earlier (filed as WORDSJAVA-3133) have been fixed in this Aspose.Words for Java 25.7 update.