DocIO JAVA - Trial message is always inserted

I'm using the JAVA DocIO Library (version 32.2.4) and the "trial warning message" is always inserted when I export a word document as SFDT.

Decompiling the JARs, I see:

`addTrailVersionWatermark` (which has a typo in its name) calls `this.getWriteWarning` which checks `this.syncfusionLicense` is not null or empty. But `syncfusionLicense` is the result of `SyncfusionLicenseProvider.checkLicense` whose String result IS A WARNING IF THE LICENSE IS INVALID, and not actually the license. ​Therefore, the check fails if there is a license and the trial message is inserted.

I might add that the documentation is not quite clear how to actually register a license and I had to peruse the decompiled java to even find the SyncfusionLicenseProvider. I think it'd be great if there was a docs entry on how to register the license on the page for the java DocIO documentation



4 Replies

AS Adam Schønemann-Warming February 13, 2026 08:46 AM UTC

After more debugging, it turns out the license check is actually correct, even if quite confusingly setup in my humble opinion :D (syncfusionLicense should maybe be called syncfusionLicenseWarning).

The reason I even went down this path was to find out while creating a simple `WordDocument`, and roundtripping back and forth between SFDT and WordDocument seems to change the bytes (if more than a second passes between rountrips).


Anyway, my suggestion about improving the docs still stands.



GN Gopinath Natesan Syncfusion Team February 13, 2026 01:31 PM UTC

Hi Adam Schønemann-Warming,

Please refer to the user guide below to Generate License key:
https://help.syncfusion.com/java-file-formats/licensing/how-to-generate

Please refer to the user guide below for register license key:
Overview of Syncfusion license registration - Syncfusion

Note: Please use the license key generated for the Java platform.

Regards,
Gopinath.



AS Adam Schønemann-Warming February 13, 2026 01:36 PM UTC

Hi Gopinath. Yes, I found those guides after much perusing, but they're hard to dig out. I think you should add a note or a link on the main JAVA DocIO doc page.


Thank you



GN Gopinath Natesan Syncfusion Team February 13, 2026 01:58 PM UTC

Adam Schønemann-Warming,
Thank you for your suggestion, we’ll work to add a note or link on the main Java DocIO page to improve visibility
Please let us know if you have any other questions. As always, we will be happy to assist you.

Regards,
Gopinath.


Loader.
Up arrow icon