{"id":137,"date":"2013-09-29T07:30:00","date_gmt":"2013-09-29T07:30:00","guid":{"rendered":"http:\/\/251@jodohost.com\/\/blog\/"},"modified":"2013-09-29T07:30:00","modified_gmt":"2013-09-29T07:30:00","slug":"converting-html-pages-into-the-pdf-form-on-a-linux-machine","status":"publish","type":"post","link":"http:\/\/www.jodohost.com\/blog\/index.php\/2013\/09\/29\/converting-html-pages-into-the-pdf-form-on-a-linux-machine\/","title":{"rendered":"Converting HTML pages into the PDF form on a Linux machine"},"content":{"rendered":"<p>If you have a Linux machine and want to save an HTML page from the Internet into the PDF format, then you can do that from the Linux machine and save that page for future aspects with the help of the tool &#8220;wkhtmltopdf&#8221;. <\/p>\n<p>It is very easy to install this tool on the Linux machine and it&#8217;s in the readymade format of the binary package &#8211; you just need to download and use it.<\/p>\n<p>Follow the steps below to use the &#8216;wkhtmltopdf&#8217; tool for converting HTML into the PDF page:- <\/p>\n<p>Step 1: Download &#8216;wkhtmltopdf&#8217; into your Linux machine and make it usable like below :- <\/p>\n<p>wget https:\/\/wkhtmltopdf.googlecode.com\/files\/wkhtmltopdf-0.10.0_rc2-static-amd64.tar.bz2<br \/>tar -xjf wkhtmltopdf-0.10.0_rc2-static-amd64.tar.bz2<br \/>mv wkhtmltopdf-amd64 wkhtmltopdf<br \/>mv wkhtmltopdf \/usr\/local\/bin\/<\/p>\n<p>After this, you can check wkhtmltopdf&#8217;s version number using the command below:- <\/p>\n<p>wkhtmltopdf -V<\/p>\n<p>Step 2: Download the HTML page into any temporary location on the Linux machine:- <\/p>\n<p>wget -p http:\/\/xyz.com\/index.html<\/p>\n<p>Step 3: Convert the HTML page into the PDF form<\/p>\n<p>wkhtmltopdf index.html index.pdf <\/p>\n<p>and then check the PDF page anytime.<\/p>\n<p> ]]><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a Linux machine and want to save an HTML page from the Internet into the PDF format, then you can do that from the Linux machine and save that page for future aspects with the help of the tool &#8220;wkhtmltopdf&#8221;. It is very easy to install this tool on the Linux machine [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/137"}],"collection":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":0,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}