Performance issue while converting doc to PDF

Hi,

i am getting slowness issue while converting doc to PDF in my windows machine and linux machine also getting slowness more than that windiws machine. ie it took more than 10 seconds in windows and linux 40 second. source file size is 163KB.

could you please advise?

this is my program
com.aspose.words.Document doc;
Date date = new Date();
ByteArrayInputStream bytImg=null;
ByteArrayOutputStream outputByt=new ByteArrayOutputStream();

File fl = new File(“C://Data//getIndexFieldsByDocType API - Analysis v1.2.doc”);
byte[] img = getBytesFromFile(fl);

bytImg=new ByteArrayInputStream(img);
doc=new com.aspose.words.Document(bytImg);
long pdfExecTime = System.currentTimeMillis();
doc.save(outputByt,SaveFormat.PDF);
pdfExecTime = System.currentTimeMillis() - pdfExecTime;
System.out.println(“PDF Execution Time---------****”+pdfExecTime);

Thanks
Raman


Hi Raman,

Thanks for your query. Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.

Hi,

Here i attached the document for ur refference

Hi Raman,

Thanks for sharing the document. I have tested the scenario over Windows 7 and Ubuntu Operating Systems (i5 CPU - 4GB memory) and have not found the shared issue while using latest version of Aspose.Words for Java. Please use the latest version of Aspose.Words for Java.

Conversion time from Doc to PDF:

Window 7 : 2.5 Seconds
Ubuntu : 3.5 Seconds

Please let us know if you have any more queries.