Example of making gradient by script in InDesign server
Written in InDesign server 2020 by Kasyan. This script works in both the InDesign server and desktop versions providing the same result. (The files resulting after running the script are also included.)
Task
Write jsx code for the InDesign app that creates and fills a rectangle with a gradient according to the following rules:
Result
Click here to download the script test files.
See also InDesign server