matchPreviewBackgroundToThemeColor resets pasteboardMargins to [0,0]
In a script, app.activeDocument.pasteboardPreferences.matchPreviewBackgroundToThemeColor to 1 causes app.activeDocument.pasteboardPreferences.pasteboardMargins to reset to [0,0].
Furthermore, setting the pasteboardMargins doesn't work after setting app.activeDocument.pasteboardPreferences.matchPreviewBackgroundToThemeColor to 1.
(While matchPreviewBackgroundToThemeColor is set to 0 everything works fine.)
-
Uwe Laubender commented
See also this Adobe InDesign Forum thread:
InDesign scripts won't apply multiple pasteboardPreferences changes
gdwd, Dec 05, 2022
https://community.adobe.com/t5/indesign-discussions/indesign-scripts-won-t-apply-multiple-pasteboardpreferences-changes/td-p/13397363Regards,
Uwe Laubender
( Adobe Community Expert )