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 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.
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++;
}