Hello @OneNorthJMP ,
Here is another approach, using the Save PDF function. Hope it helps.
obj = New Window( "PCM_WOEKFLOW", Variability Chart( Y( :"Vtl_N1 - N/.9/.9"n ), X( :Lot ) ) );
obj << Set page setup(
margins( 1, 1, 1, 1 ),
scale( 0.75 ),
portrait( 0 ),
paper size( "Letter" )
);
obj << save PDF( "C:\xxx\PCM_WOEKFLOW.pdf" );
obj << close window;