Hi there,
the company I work for, is interested to buy an aspose.words Developer OEM license. In our case, we would like to buy the Android version. We need to use the API to parse docx documents filled by several mergefields (text and images) and then we need to convert manipulated docx files to pdf format.
We made several tests using the trial version (without appling any license) and we found out some performance problem. In my MainActivity I wrote this code:
Log.d(TAG, "OPERATION STARTED!");
long tStart = System.currentTimeMillis();
Document doc = new Document(Environment.getExternalStorageDirectory() + "/test/99000001V.docx");
long tEnd = System.currentTimeMillis();
Log.d(TAG, "Second elapsed creating document: " + (tEnd - tStart) / 1000.0);
doc.getMailMerge().setTrimWhitespaces(false);
tEnd = System.currentTimeMillis();
Log.d(TAG, "Second elapsed getMailMerge().setTrimWhitespaces(): " + (tEnd - tStart) / 1000.0);
doc.getMailMerge().execute(new DocxMailMergeDataTable());
tEnd = System.currentTimeMillis();
Log.d(TAG, "Second elapsed getMailMerge().execute(): " + (tEnd - tStart) / 1000.0);
doc.save(Environment.getExternalStorageDirectory() + "/test/output.pdf");
tEnd = System.currentTimeMillis();
Log.d(TAG, "Second elapsed save(): " +(tEnd - tStart) / 1000.0);
Log.d(TAG, "OPERATION COMPLETED!");
Where DocxMailMergeDataTable
is a IMailMergeDataSource
implementation.
Running the code the output is this:
MainActivity: OPERATION STARTED!
MainActivity: Second elapsed creating document: 5.97
MainActivity: Second elapsed getMailMerge().setTrimWhitespaces(): 5.982
MainActivity: Second elapsed getMailMerge().execute(): 161.667
MainActivity: Second elapsed save(): 191.94
MainActivity: OPERATION COMPLETED!
We would like to ask you what are the limitations of using the no-licensed version and if the registered times can be improved by buing a complete license. In our case, we need that the entire process could be completed in less then 5 second. Is that possibile?
Thanks for your help.
Best regards.