Unable to process images using Aspose Words

Hi,

PFA attached test document and program

In out application, We are processing Word images using aspose (aspose-words-15.5.0-jdk16.jar).

In the attached test document, When we try to get ((Shape) node).getShapeRenderer(), the code execution just hangs infinitely

This single line of code literally brings our application to dead halt. This impacts the stability for our application and we are not able to process such images.

This issue is very critical and urgent for our Business. I would appreciate if you could look into this issue urgently.

Thanks
Viswa

Hi Viswa,

Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for Java 16.1.0 and have not found the shared issue. Please use Aspose.Words for Java 16.1.0 and let us know if you have any more queries.

Hi,

I have tested the issue with the latest version of Aspose.Words for Java 16.1.0. The latest jar is able to execute the line

ShapeRenderer shapeRenderer = ((Shape) node).getShapeRenderer();

But it still takes a very long time (around 4 mins) to execute the above line which is not acceptable from performance perspective.

If you are able to execute without any delays, please post how much seconds/milliseconds that particular line of code takes.

Could you please look into this urgently and come back on this.

Hi Viswa,

Thanks for your inquiry. We have tested the scenario using following code example at Windows 7, Jdk 1.8 and getShapeRenderer method takes around 1 second at our side.

Could you please share your environment detail e.g. Operating system, Jdk version (32 bit or 64 bit)? We will investigate the issue on our side and provide you more information.

Document asposeDoc = new Document(MyDir + "Test.docx");
Node[] drawArray = asposeDoc.getChildNodes(NodeType.SHAPE, true).toArray();
int index = 0;
for (Node node : drawArray)
{
    System.out.println("start processing image===> " + index);
    if (node instanceof Shape)
    {
        long start = System.currentTimeMillis();
        ShapeRenderer shapeRenderer = ((Shape)node).getShapeRenderer();
        System.out.println("Execution time: " + (System.currentTimeMillis() - start) + " ms");
    }
    index++;
}

Hi,

The code execution works fine with aspose-words-16.1.0-jdk16.jar. I might have been doing something wrong.

Currently, we are using the following aspose libs:

aspose.slides-15.4.0-jdk16.jar
aspose-imaging-3.0.1-jdk16.jar
aspose-words-15.5.0-jdk16.jar

If we upgrade the aspose words to aspose-words-16.1.0-jdk16.jar, what are the compatible versions for aspose slides and imaging libs.

Please advise.

Hi Viswa,

Thanks for your inquiry. It is nice to hear from you that your problem has been solved.

All Aspose products are independent from each other. We suggest you please use latest version of Aspose.Slides, Aspose.Words and Aspose.Imaging.