Replacement of the _O_PAGE SETUP command in v18


I kindly ask if someone can be of help about the replacement of the _O_PAGE SETUP command, meaning how to get the settings saved in existing printing forms ?

Need to set each printing option programmatically with SET PRINT OPTION or is it possible to get all saved ones in existing printing forms automatically ?

Thanks in advance for any help.

if you convert the form to JSON,
or introspect the 4DForm,
you’d see that the page settings are now an object property of the JSON form.

for example,

“pageFormat”: {
“paperName”: “A4”,
“paperWidth”: “842pt”,
“paperHeight”: “595pt”,
“orientation”: “landscape”,
“scale”: 50

the idea is to use SET PRINT OPTION for each of these commands.

Thanks !!!