We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Document conversion to pdf is running slow in WebSphere

Hi Team,

We have Aspose total java license.

We recently implemented aspose library for document conversion and merge to pdf for the documents stored in FileNet.

The libraries are deployed as part of FileNet application code module in WebSphere and for the first call its taking lot of time and then request times out if the first call is success then next calls are fast.

Could you please advise what could be causing the issue in first call.

We are running WebSphere 8.5.5.20 with JDK 1.8.

Similar issue is noticed for aspose-imaging-22.3-jdk16 where we are using aspose libraries to resize large size images.

@AbhishekMishra On the first run Aspose.Words initializes resources, like fonts required for rendering document to PDF. This resources initialization makes the first conversion operation might take longer than subsequent conversion operations.

As a workaround, I can suggest you to run code like the following on your application start. This will make Aspose.Words to init the required resources and the first real call will not take long time.

Document doc = new Document();
doc.updatePageLayout();