<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to convert Page Setup Setting (PDF) to JSL Script? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-convert-Page-Setup-Setting-PDF-to-JSL-Script/m-p/699017#M88405</link>
    <description>&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;I'm trying to save my journal report in .pdf through JSL scripting.&lt;/P&gt;&lt;P&gt;My issue now is, I can save the report to fit nicely the landscape page manually using below settings;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_0-1700103417164.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58783iBAD7D97BC601A891/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WebDesignesCrow_0-1700103417164.png" alt="WebDesignesCrow_0-1700103417164.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But, when I converted the setting to JSL script, it stays in portrait.&lt;/P&gt;&lt;P&gt;Why my script not working? I've set the preferences to landscape as default but still not working&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// add the header to the journal
j = Current Journal();
listOfReports = j &amp;lt;&amp;lt; child;
nReports = N Items( listOfReports );
// add page breaks
For( i = N Items( listOfReports ), i &amp;gt;= 1, i--,
	Insert Into( listOfReports, Page Break Box(), i ));
// make the PDF from the journal
j &amp;lt;&amp;lt; set window title ("Daily Analysis Report "||format(today(), "d/m/y",10); );
j &amp;lt;&amp;lt; set page setup( {margins( {0.75, 0.75, 0.75, 0.75} ), scale( 0.94 ), portrait(0), paper size( "Letter" )} );
// make the PDF from the journal
j &amp;lt;&amp;lt; save PDF("$desktop/reportJSL.pdf");uus&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;using JMP17.0&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2023 03:00:12 GMT</pubDate>
    <dc:creator>WebDesignesCrow</dc:creator>
    <dc:date>2023-11-16T03:00:12Z</dc:date>
    <item>
      <title>How to convert Page Setup Setting (PDF) to JSL Script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-Page-Setup-Setting-PDF-to-JSL-Script/m-p/699017#M88405</link>
      <description>&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;I'm trying to save my journal report in .pdf through JSL scripting.&lt;/P&gt;&lt;P&gt;My issue now is, I can save the report to fit nicely the landscape page manually using below settings;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_0-1700103417164.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58783iBAD7D97BC601A891/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WebDesignesCrow_0-1700103417164.png" alt="WebDesignesCrow_0-1700103417164.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But, when I converted the setting to JSL script, it stays in portrait.&lt;/P&gt;&lt;P&gt;Why my script not working? I've set the preferences to landscape as default but still not working&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// add the header to the journal
j = Current Journal();
listOfReports = j &amp;lt;&amp;lt; child;
nReports = N Items( listOfReports );
// add page breaks
For( i = N Items( listOfReports ), i &amp;gt;= 1, i--,
	Insert Into( listOfReports, Page Break Box(), i ));
// make the PDF from the journal
j &amp;lt;&amp;lt; set window title ("Daily Analysis Report "||format(today(), "d/m/y",10); );
j &amp;lt;&amp;lt; set page setup( {margins( {0.75, 0.75, 0.75, 0.75} ), scale( 0.94 ), portrait(0), paper size( "Letter" )} );
// make the PDF from the journal
j &amp;lt;&amp;lt; save PDF("$desktop/reportJSL.pdf");uus&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;using JMP17.0&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 03:00:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-Page-Setup-Setting-PDF-to-JSL-Script/m-p/699017#M88405</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2023-11-16T03:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Page Setup Setting (PDF) to JSL Script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-Page-Setup-Setting-PDF-to-JSL-Script/m-p/699037#M88409</link>
      <description>&lt;P&gt;Got it.&lt;/P&gt;&lt;P&gt;Somehow, I need to add Wait (0) after set page setup &amp;amp; before save .pdf to make it works.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// add the header to the journal
j = Current Journal();
listOfReports = j &amp;lt;&amp;lt; child;
nReports = N Items( listOfReports );
// add page breaks
For( i = N Items( listOfReports ), i &amp;gt;= 1, i--,
	Insert Into( listOfReports, Page Break Box(), i ));
// make the PDF from the journal
j &amp;lt;&amp;lt; set window title ("Daily Analysis Report "||format(today(), "d/m/y",10); );
j &amp;lt;&amp;lt; set page setup( {margins( {0.75, 0.75, 0.75, 0.75} ), scale( 0.94 ), portrait(0), paper size( "Letter" )} );
Wait(0);
// make the PDF from the journal
j &amp;lt;&amp;lt; save PDF("$desktop/reportJSL.pdf");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 03:56:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-Page-Setup-Setting-PDF-to-JSL-Script/m-p/699037#M88409</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2023-11-16T03:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Page Setup Setting (PDF) to JSL Script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-Page-Setup-Setting-PDF-to-JSL-Script/m-p/872610#M103678</link>
      <description>&lt;P&gt;In JMP 18 this didn't work. I had to get rid of the&amp;nbsp;&lt;SPAN&gt;curly braces to make it work:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;j &amp;lt;&amp;lt; set page setup(Margins( {0.7, 0.2, 0.2, 0.2} ), Scale( 1 ), Portrait( 1 ),Paper Size( "A4" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 12:05:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-Page-Setup-Setting-PDF-to-JSL-Script/m-p/872610#M103678</guid>
      <dc:creator>Mauro_Gerber</dc:creator>
      <dc:date>2025-05-09T12:05:02Z</dc:date>
    </item>
  </channel>
</rss>

