I am using JMP 17.0. The PDF file was not having issues with exporting to my desktop. Using this code,
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
nw = New Window("Charts",
obj = dt << Control Chart Builder(
Variables(Y(:height, :weight)),
Show Control Panel(0),
);
);
nw << Set page setup(margins(0.75, 0.75, 0.75, 0.75), scale(0.2), portrait(1), paper size("Tabloid"));
nw << Save PDF("$Desktop\EXAMPLE.pdf");
Open("$Desktop\EXAMPLE.pdf");
nw << Set page setup(margins(0.5, 0.5, 0.5, 0.5), scale(0.8), portrait(0), paper size("Letter"));
nw << Save PDF("$Desktop\EXAMPLE 2.pdf");
Open("$Desktop\EXAMPLE 2.pdf");
I set the Page Setup portion up two separate ways and the two PDFs that are exporting look exactly the same (EXAMPLE and EXAMPLE 2). This is the reason I believe the 'page setup' portion is not being considered. Are you saying you do not have this issue?
Edit: I am able to get the above to export two different PDFs now. My issue was because the JMP script I was using was being housed inside a project. As far as I can tell, 'Set page setup' instructions do no work when they are within a script, within a project. Is there a workaround currently available for this?