<?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 Re: How to save webpages through JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67942#M34729</link>
    <description>&lt;P&gt;Thanks Jim for your response. Do you have any alternate suggestions on how to save&amp;nbsp;webpages as pdfs through JMP?&amp;nbsp;I encountered&amp;nbsp;similar issues as above with saving as journal files or htmls.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 19:49:04 GMT</pubDate>
    <dc:creator>sgpt</dc:creator>
    <dc:date>2018-08-14T19:49:04Z</dc:date>
    <item>
      <title>How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67789#M34691</link>
      <description>&lt;P&gt;How can I save webpages from JSL? I use the following lines of code to open the webpage in a JSL&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;url = "https://www.nytimes.com";
w = New Window( "s1",wb = Web Browser Box(url ), wb &amp;lt;&amp;lt; Set Size( 1200, 1200 ););
w &amp;lt;&amp;lt; Set Window Size( 1200, 1200 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thereon, what can I do to save the webpage with full graphics in a form that can be consumed later (pdf or full graphic html)? I essentially need to do this for a few hundred internal URLs for a database for visualization that is being turned off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:57:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67789#M34691</guid>
      <dc:creator>sgpt</dc:creator>
      <dc:date>2018-08-14T20:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67920#M34719</link>
      <description>&lt;P&gt;Bumping&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:39:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67920#M34719</guid>
      <dc:creator>sgpt</dc:creator>
      <dc:date>2018-08-14T14:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67927#M34724</link>
      <description>&lt;P&gt;JMP allows you to generate JMP output and then save that output to either HTML or Interactive HTML.&amp;nbsp; You can generate a JMP Journal that will allow you to bring in various pieces of output from different graphical and statistical JMP platforms, and then save it to HTML.&lt;/P&gt;
&lt;P&gt;If what you want to do, is to build raw HTML code into webpages, then the only way that I know of how to do that in JMP would be to place all of the HTML code into a string variable and then use the Save Text File() function to save the HTML generated code to a file.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:39:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67927#M34724</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-14T15:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67928#M34725</link>
      <description>&lt;P&gt;Thanks txnelson. I am trying to save the webpages as pdfs. However, I just get void files saved when I run something like this below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;url = "http://nytimes.com";
w = New Window( "s1", wb = Web Browser Box());
w &amp;lt;&amp;lt; Set window size (1200,1200);
wb &amp;lt;&amp;lt; set auto stretching (1,1);
w &amp;lt;&amp;lt; set auto stretching (1,1);
wb &amp;lt;&amp;lt; Set Max Size( 1200, 1200 );
wb &amp;lt;&amp;lt; navigate (url);
wait(2);
wb &amp;lt;&amp;lt; select &amp;lt;&amp;lt; save pdf ("$Documents\tst.pdf"); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It feels like I am something really obvious in how I am trying to save the web browser box object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 17:51:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67928#M34725</guid>
      <dc:creator>sgpt</dc:creator>
      <dc:date>2018-08-14T17:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67939#M34727</link>
      <description>&lt;P&gt;I could not find a way to save a Web Box() object to a PDF......maybe another community member can determine a method&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:54:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67939#M34727</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-14T18:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67942#M34729</link>
      <description>&lt;P&gt;Thanks Jim for your response. Do you have any alternate suggestions on how to save&amp;nbsp;webpages as pdfs through JMP?&amp;nbsp;I encountered&amp;nbsp;similar issues as above with saving as journal files or htmls.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:49:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67942#M34729</guid>
      <dc:creator>sgpt</dc:creator>
      <dc:date>2018-08-14T19:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67966#M34736</link>
      <description>&lt;P&gt;JMP may not be the best tool for that specific part of the job - saving a web page as a PDF file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I found the &lt;A href="https://pypi.org/project/pdfkit/" target="_self"&gt;pdfkit library&lt;/A&gt; for Python which means you can do it from JMP using the &lt;A href="https://www.jmp.com/support/help/14/python-interface.shtml" target="_self"&gt;Python interface&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;URLs = {"https://jmp.com", "https://community.jmp.com"};

py = Python Connect();

For( i = 1, i &amp;lt;= N Items( URLs ), i++,
	pdf = "C:\TEMP\" || Substitute( Word( 2, URLs[i], "/" ), ".", "" ) || ".pdf";
	py &amp;lt;&amp;lt; submit(
		Eval Insert( "import pdfkit; pdfkit.from_url('^URLs[i]^', '^pdf^')" )
			
	);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One hiccup to note: &lt;A href="https://pypi.org/project/pdfkit/" target="_self"&gt;pdfkit&lt;/A&gt; is a wrapper for &lt;A href="https://wkhtmltopdf.org" target="_self"&gt;wkhtmltopdf&lt;/A&gt; so you'll need to install that also.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 21:39:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/67966#M34736</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-08-14T21:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/107548#M39175</link>
      <description>&lt;P&gt;I am trying to save html as pdf.Tried running this code but Python Connect() does not work for me.&lt;/P&gt;&lt;P&gt;I am using JMP12.Is this not supportable for this version of JMP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 22:17:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/107548#M39175</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2019-01-22T22:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/107676#M39193</link>
      <description>&lt;P&gt;No, JMP 12 does not have support for connecting to Python. You’ll need to upgrade to the current release of JMP, JMP 14 to connect to Python.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 13:14:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/107676#M39193</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2019-01-23T13:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/107726#M39222</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6878"&gt;@Jeff_Perkinson&lt;/a&gt;&amp;nbsp;.Is there any other option to save html as pdf in jmp12?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 18:49:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/107726#M39222</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2019-01-23T18:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to save webpages through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/108089#M39333</link>
      <description>&lt;P&gt;You may be able to use &lt;A href="https://www.jmp.com/support/help/14-2/run-external-programs.shtml" target="_self"&gt;Run Program()&lt;/A&gt;&amp;nbsp;to launch Python to accomplish this in JMP 12. There's a &lt;A href="https://community.jmp.com/t5/Discovery-Summit-Europe-2016/Run-Program-The-JMP-Link-To-Other-Programs/ta-p/23685" target="_self"&gt;good paper&lt;/A&gt; from Discovery Summit Europe 2016 with good examples for how to use Run Program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, JMP 14 is a complimentary upgrade for users with an Annual License. You should speak to your license administrator about getting JMP 14. If you don't know who that is send me a private message and I'll be able to assist you.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 14:52:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-webpages-through-JSL/m-p/108089#M39333</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2019-01-28T14:52:12Z</dc:date>
    </item>
  </channel>
</rss>

