@vyacheslav.deryushev below is the ocde we are using.
InputStream targetStream = new ByteArrayInputStream(htmlString.getBytes(StandardCharsets.UTF_8));
Document document = new Document(targetStream);
LayoutCollector collector = new LayoutCollector(document);
LayoutEnumerator enumerator = new LayoutEnumerator(document);
Getting the above mentioned error while running the above code and provided the sample html content also.
@athulcp3 The exception occurs upon building document layout, that is done upon creating LayoutCollector
and LayoutEnumerator
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-27534
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@alexey.noskov any update on the issue “Issue ID(s): WORDSNET-27534”. Please let me know the status
@athulcp3 The exception has been fixed by WORDSNET-27480. The fix will be included into the next 24.11 version of Aspose.Words. It will be released in a couple of weeks. But the issue WORDSNET-27534 is not closed yet, because there are other problems with it. We will keep you updated and let you know once it is resolved.
@alexey.noskov thanks for the response. Please let me know after it deploy
1 Like
@alexey.noskov Can you please provide the status of WORDSNET-27480 and WORDSNET-27534. When it will be avialable?
@athulcp3
WORDSNET-27480 is already resolved in the current codebase. The fix will be included into the upcoming 24.11 version of Aspose.Words for Java.
WORDSNET-27534 draft of the fix is already implemented, the code is currently in review. If everything goes smoothly, the fix will be included into the next 24.12 version of Aspose.Words.
@alexey.noskov Can you please tell me when the 24.12 release will be?
@athulcp3 Aspose.Words for Java 24.12 will be released in the middle of the next month.
The issues you have found earlier (filed as WORDSNET-27534) have been fixed in this Aspose.Words for Java 24.11 update.
@alexey.noskov Could you please provide the details of the “WORDSNET-27534” ticket? Is the 24.12 version released? It would be great if you could tell the release date of the 24.12 version.
@athulcp3 Yes, 24.12 version of Aspose.Words has been released. But the fix of WORDSNET-27534 was not included in it. It will be included into the next 25.1 version. Please accept our apologies for your inconvenience and confusion.
@alexey.noskov When will the 25.1 version be released? hoping WORDSNET-27534 will be included in the 25.1 version release.
@athulcp3 New versions of Aspose.Words are published at the beginning of each month. So 25.1 version will be available at the beginning of January 2025. I am afraid there is no fixed release date.
The issues you have found earlier (filed as WORDSNET-27534) have been fixed in this Aspose.Words for Java 25.1 update.
@alexey.noskov How to download the 25.1 apose Java Word package; we are currently using 23.8.0. Please advise what the changes need to do. do we geet new licence with 25.1 version?
@athulcp3 You can download it here:
https://releases.aspose.com/words/java/25-1/
If you are using maven, you can use the following configuration:
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://releases.aspose.com/java/repo/</url>
</repository>
..................................
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>25.1</version>
<classifier>jdk17</classifier>
</dependency>
Yes, most likely, you will need a new license. Each Aspose license provides a 1-year subscription for free upgrades to any new Aspose product version that comes out. You can download and use any Aspose product version released before the subscription expiry date.
If you want to check when your subscription expires, open the license file in Notepad (but take care not to modify and save the license file or it will no longer work) and see the SubscriptionExpiry field.
<SubscriptionExpiry>20220218</SubscriptionExpiry>
It means that you can free upgrade to version of Aspose product published before 02/18/2022.
You can use Aspose license perpetually, unless you update Aspose product to the version, which is released after the license expiration date.
@alexey.noskov how to use dowbloaded aspose words jdk 17 in gradle application using implementation
@athulcp3 You can use the following code:
compile(group: 'com.aspose', name: 'aspose-words', version: '25.1')