Gojs Remove Watermark

353 views
Skip to first unread message

Escolastico Hall

unread,
Aug 4, 2024, 6:46:27 PM8/4/24
to chermarighla
TheGoJS library is software that is licensed under a commercial license agreement. It is not open-source. If you have downloaded a copy of the GoJS library from gojs.net or npm or GitHub for use in your own app, you may have noticed that a watermark appears in the diagram.

Enter your e-mail address and the e-mail address of the person who purchased a license for GoJS, the order number for that purchase, and your web site's domain name or your Electron app's package.json "name" attribute, or "productName" attribute if it is specified. Please make sure that e-mail from "nwoods.com" is not caught in your corporate or personal spam filter. If you contact us for further help either via our web site or by sending us email, please include the e-mail that our web server sent to you.


Regarding domain names, if your app will be at: , enter example.com as the domain name. This procedure works for internal corporate web sites as well as for public web sites, with hostnames and with IP addresses. The protocol (such as ) and port number (such as :8080) do not matter, so do not include them.


The license key will also work when the HTML page is served from a subdomain of the licensed domain, such as from editors.example.com. Any valid license key will automatically also work at the localhost domain, which is useful when debugging and testing.


Our server will generate a GoJS license key for you, in the form of a JavaScript statement that you will need to include with your code. It must execute after the GoJS library file has been loaded, but before you create your first Diagram.


This mechanism works when using either the release library, go.js, or the debug library, go-debug.js, or the ES module versions of the library, but only with GoJS version 1.8 or later. Note that this assignment is of a static property of the Diagram class: Diagram.licenseKey. Of course you will need to substitute your generated license key string for "...YourKeyHere..." in the go.Diagram.licenseKey assignment statement. License keys are long strings without any embedded whitespace or punctuation. You can request license keys for as many domains as you have licensed.


Once your key is in place, you can continue to use the same key while updating the patch/baselevel version of GoJS. For example, a license key for version 2.0.1 will work for all versions 2.0.*. Remember to get a new license key when upgrading to a new major or minor version of GoJS. For example, when upgrading from version 2.0.1 to version 2.1.0, you will need a new license key.


License keys only depend on the major/minor version number and the domain from which the HTML page was served. License keys are valid forever, as long as the major and minor version number of the library do not change and as long as the HTML page is served from the same domain.


When building a desktop application using Electron, your HTML page is not being served from a web server at a domain. You will need to activate with the "name" you have specified in your project's package.json to make sure your Diagram does not display a watermark.


If you are an ISV and intend to distribute your app to run on many customers' web sites, or if your app is hosted in a WebView as part of a desktop application, Contact sales for our our Unlimited Domains option and instructions.


The GoJS library does not manipulate currency values or date/time values or addresses, so there are no localization issues with those data types and values. The library does not contain any of its own icons (images) or cursors.


Nor does GoJS display any built-in text strings, so no translation is needed. There are error and warning messages that may be output to the console, but those messages are only meant for debugging by programmers, not for consumption by end users. Reading and writing of numeric values is only performed internally when reading and writing JSON or geometry path strings or CSS colors, which are all defined to use non-localized formats.


All user-visible text is completely under the control of the programmer. For localizability you may find it convenient to use conversion functions in Bindings. The TextEditingTool uses an HTML TextArea element to implement in-place text input and text editing, thereby utilising the browser's support for input method editors.


If you have downloaded a copy of the GoJS library from gojs.net for use in your own app, you have probably noticed that a watermark appears in the diagram. For version 1.7 and beyond, you need to use a license key to remove this watermark from your domain. For version 1.6 and older, you need to get a generated go.js or go-debug.js library that is tied to your particular domain.


Enter your e-mail address and the e-mail address of the person who purchased a license for GoJS, the order number for that purchase, and your web site's domain name. Please make sure that e-mail from "nwoods.com" is not caught in your corporate or personal spam filter. If you contact us for further help either via our web site or by sending us email, please include the e-mail that our web server sent to you.


Regarding domain names, for example, if your app will be at: , enter example.com as the domain name. This procedure works for internal corporate web sites as well as for public web sites, with hostnames and with IP addresses. The protocol and port number do not matter. It will work when the HTML page is served from a subdomain of the licensed domain, such as from editors.example.com. It will also work when "localhost" is the domain, to help your debugging and testing efforts.


This mechanism works when using either the release library, go.js, or the debug library, go-debug.js, but only with GoJS version 1.7 or later. Of course you will need to substitute your generated license key string for "YourKeyHere" in the go.licenseKey assignment statement. License keys are long strings without any embedded whitespace or punctuation. You can request license keys for as many domains as you have licensed.


Unlike the older activation method, you no longer need to get a new domain-specific go.js library each time you update or upgrade. Once your key is in place, you can continue to use the same key while updating the patch version of GoJS. For example, a license key for version 1.7.3 will work for all versions 1.7.*. Remember to get a new license key when upgrading to a new major or minor version of GoJS. For example, when upgrading from version 5.3.1 to version 5.4.6, you will need a new license key.


You can download the go.js library from the GoJS Downloads page, or you can install it via Node package manager (npm) or via NuGet, or you can link to a CDN. Most customers will no longer need a special build of GoJS, as had been the case before version 1.7.


If you are an ISV and intend to distribute your app to run on many customers' web sites, Contact sales for our our Unlimited Domains option and instructions on requesting and using a custom go.js library that works on any site or platform.


When building a desktop application using Electron or Cordova or NW or when hosted in a WebView as part of a desktop application, your HTML page is not being served from a web server at a domain. In such circumstances you will need to use the Unlimited Domains option to make sure your Diagram does not display a watermark.


When updating or upgrading to a new version of GoJS less than version 1.7, you will need to get a new domain-specific go.js library again using the same procedure. (We too had to produce one for the domain "gojs.net" each time we updated our web site.)


If you are building a Windows Store JavaScript app, there is no domain name. Instead you should use the application-specific "appId", a GUID. To obtain the proper ID your app must first be packaged with the windows app store, so that the package name is the one to be used in production. Once you have associated your app with the windows store, you can find this GUID in your package.appxmanifest file as the Name attribute.


The GoJS library does not manipulate currency values or date/time values or addresses, so there are no localization issues with those data types and values. GoJS does not contain any of its own icons (images) or cursors.


I just found out how to add a watermark to a document (addWatermarkFromText method) and it works great. But what if I want to remove the watermark at a later date. I don't seem to be able to remove the watermark I added via JavaScript by going to Document > Watermark > Remove. The only way I can see to remove it is by selecting the Touchup Object tool and manualy deleteing the watermark from each page.

3a8082e126
Reply all
Reply to author
Forward
0 new messages