...
Code Block |
---|
_SAVEFILEFORDOWNLOAD _PDF "test.pdf" 0 0 0 false |
Command parameters:
Key “_PDF” to determine that you want to save the file as pdf
File name that needs to be
...
on a separate line as it could contain spaces (so we can parse it properly)
Upload option:
1: the result will be uploaded to API backend (POST /files is done, see API Documentation )
0: the result is uploaded to output bucket (SaaS version) or written to a dedicated script output folder (on-premise version)
Text as geometry option:
1: Texts are exported as geometry
0: no text conversion
Print option: (pass only if (3) upload option is not 1)
must be 0 when running from scriptDownload option: (pass only if (3) upload option is not 1)
must be false when running from script
A sample script file can be found here.
Sample call to run it locally with on-premise version:
To run on https://app.kudo.graebert.com/ you need to specify “file” correctly and add proper “auth” parameter or (do not forget to wrap the parameters in an api token using your app key).
By fileType parameter (On-premise only)
...
You can run _DOEXPORT command from a script to create images from your drawing passing parameters as followed:
Code Block |
---|
_DOEXPORT "test.bmp" "bmp" "" 0 ""_ALL |
Command parameters:
File name that needs to be
...
on a separate line as it could contain spaces (so we can parse it properly)
File type that needs to be
...
on a separate line as it allows to contain spaces (e.g. in format “Bitmap .bmp”)
Folder id passed to file upload if next option is true - needs to be on a separate line as well as spaces are allowed
Upload option:
1: the result will be uploaded to API backend (POST /files is done, see API Documentation )
0: the result is uploaded to output bucket (SaaS version) or written to a dedicated script output folder (on-premise version)
Selection of drawing content: enter or _ALL to select all
Empty line (enter) to finish the command
A sample script file can be found here.
Sample call to run it locally with on-premise version:
To run on https://app.kudo.graebert.com/ you need to specify “file” correctly and add proper “auth” parameter or wrap the parameters in an api token using your app key.
...