When I use the following, on the mac the result is always an 8.5x11 portrait layout, no matter what is entered for the height & width in those variables. I decided maybe pageWidth was too close to PageWidth, so I also tried pageWidth = 11, pageHeight = 8.5 without luck. Unfortunately, hard to track down more details b/c I can’t get debugging to show any values on the mac, so I have no idea what’s going wrong.
Yes, on mac that creates a layout that’s 215.9 wide and 279.4 tall with a detail that’s 1169 wide and 801 tall (mm) (document in inches.)
Note that the code says to make a horizontal layout and the result is vertical and the wrong size.
Also, related to that script, I can’t disable redraw at the places one would think, because the script won’t function at all if I do. I can’t figure out why.