Unlicensed watermark when using CLI

80 views
Skip to first unread message

Stefan D

unread,
Nov 18, 2024, 12:36:22 AM11/18/24
to StarUML
Hi, I noticed that when I use the CLI as in `staruml image my_model.mdj` the image gets the "UNREGISTERED" watermark, even though I have a license.

It works fine (as in: no watermark) if I export it through the UI under "File -> Export Diagram As -> All to PNGs"

StarUML

unread,
Nov 18, 2024, 3:24:49 AM11/18/24
to StarUML
Hi,

Thank you for your feedback.

Occasionally, we have identified that the issue occurs when license verification does not complete before the CLI command is executed. This will be fixed in the next release.

Thank you,

2024년 11월 18일 월요일 오후 2시 36분 22초 UTC+9에 stefa...@gmail.com님이 작성:

escribis

unread,
Nov 19, 2024, 12:13:21 PM11/19/24
to StarUML
Hello
I've the same problem. My licence is for 5.1.0. Could you fix this please ?
Is there any workaround using the API ? I've seen no method to save an image in the API. Did I miss something ?
Thanks for your help.
Regards
  JM

StarUML

unread,
Nov 19, 2024, 9:03:09 PM11/19/24
to StarUML
You can avoid the issue by disabling the network interface. Use a shell command to turn off the network, export the image, and then turn the network back on.

The method to export images via API is to execute a command. Please refer to the link below.

Thanks,

2024년 11월 20일 수요일 오전 2시 13분 21초 UTC+9에 escribis님이 작성:

Jean-Marie Favre

unread,
Nov 21, 2024, 6:43:11 AM11/21/24
to StarUML


On 20/11/2024 03:03, StarUML wrote:
The method to export images via API is to execute a command. Please refer to the link below.
Well, shall I guess the command name ? Is this documented somewhere ?
Thanks in advance.

Thanks,

2024년 11월 20일 수요일 오전 2시 13분 21초 UTC+9에 escribis님이 작성:
Hello
I've the same problem. My licence is for 5.1.0. Could you fix this please ?
Is there any workaround using the API ? I've seen no method to save an image in the API. Did I miss something ?
Thanks for your help.
Regards
  JM
On Monday, November 18, 2024 at 9:24:49 AM UTC+1 StarUML wrote:
Hi,

Thank you for your feedback.

Occasionally, we have identified that the issue occurs when license verification does not complete before the CLI command is executed. This will be fixed in the next release.

Thank you,

2024년 11월 18일 월요일 오후 2시 36분 22초 UTC+9에 stefa...@gmail.com님이 작성:
Hi, I noticed that when I use the CLI as in `staruml image my_model.mdj` the image gets the "UNREGISTERED" watermark, even though I have a license.

It works fine (as in: no watermark) if I export it through the UI under "File -> Export Diagram As -> All to PNGs"

--
You received this message because you are subscribed to the Google Groups "StarUML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to staruml+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/staruml/cc8c1311-c208-40bd-b21e-c99b3c39f9bcn%40googlegroups.com.

StarUML

unread,
Nov 21, 2024, 10:24:12 PM11/21/24
to StarUML
You can find an example to print out all the command ids at https://docs.staruml.io/developing-extensions/commands#calling-a-command. Please try the code in the dev console.

Thanks,

2024년 11월 21일 목요일 오후 8시 43분 11초 UTC+9에 escribis님이 작성:

Stefan D

unread,
Nov 21, 2024, 11:41:02 PM11/21/24
to StarUML
Another handy tip to find out the name of commands that you'd normally run through the UI is to hook into the event that is emitted when a command is executed: Do this in the console
    app.command.on('beforeExecuteCommand', (e) => {console.log(e)})

Then when you e.g. do the File -> export to PNG, you should see the command name in the console printed.


Reply all
Reply to author
Forward
0 new messages