<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wkhtmltoimage on ubuntu 19.04 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/wkhtmltoimage-on-ubuntu-19-04/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 09 Dec 2019 13:12:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install wkhtmltopdf and wkhtmltoimage on Ubuntu 19.04 / Debian 10</title>
		<link>https://www.osradar.com/how-to-install-wkhtmltopdf-and-wkhtmltoimage-on-ubuntu-19-04-debian-10/</link>
					<comments>https://www.osradar.com/how-to-install-wkhtmltopdf-and-wkhtmltoimage-on-ubuntu-19-04-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 09 Dec 2019 13:12:57 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Debian 10]]></category>
		<category><![CDATA[Install wkhtmltopdf]]></category>
		<category><![CDATA[Install wkhtmltopdf on Debian]]></category>
		<category><![CDATA[ubuntu 19.04]]></category>
		<category><![CDATA[wkhtmltoimage on ubuntu 19.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16411</guid>

					<description><![CDATA[<p>Today we are going to learn that how we can convert our web pages from html format to pdf or image format. For obtaining these results we&#8217;ll use the most famous command line tools wkhtmltopdf &#38; wkhtmltoimage. They are Open Source Command line tools used for conversion processes from html to pdf and image respectively.They [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-wkhtmltopdf-and-wkhtmltoimage-on-ubuntu-19-04-debian-10/">How To Install wkhtmltopdf and wkhtmltoimage on Ubuntu 19.04 / Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that how we can convert our web pages from html format to pdf or image format. For obtaining these results we&#8217;ll use the most famous command line tools wkhtmltopdf &amp; wkhtmltoimage. They are Open Source Command line tools used for conversion processes from html to pdf and image respectively.<br>They both use the QT WebKit rendering engine to perform the actions.<br>By default, the versions available on Ubuntu are old for these tools. So, we have to Install them manually. Follow the guide to get started that how we can Install wkhtmltopdf &amp; wkhtmltoimage on Ubuntu 19.04 Linux.<br> First of all we&#8217;ll download the tools from <strong>.deb </strong>package. Further these tools do not require a display so they are entirely headless.</p>



<h3><strong>Install wkhtmltopdf on Ubuntu 19.04 / Debian 10</strong></h3>



<p>Visit the below link to Download the latest precompiled binary from the release page.</p>



<p><a href="https://wkhtmltopdf.org/downloads.html">Download latest version of wkhtmltopdf</a></p>



<h4><strong>Step 1: Install wkhtmltopdf on Ubuntu 19.04</strong></h4>



<pre class="wp-block-verse">sudo apt update<br> sudo apt -y install wget<br>wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb<br> sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb<br> sudo apt -f install</pre>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="689" height="426" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/install-wkhtmtopdf.jpg" alt="" class="wp-image-16414" srcset="https://www.osradar.com/wp-content/uploads/2019/12/install-wkhtmtopdf.jpg 689w, https://www.osradar.com/wp-content/uploads/2019/12/install-wkhtmtopdf-300x185.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/install-wkhtmtopdf-356x220.jpg 356w, https://www.osradar.com/wp-content/uploads/2019/12/install-wkhtmtopdf-679x420.jpg 679w" sizes="(max-width: 689px) 100vw, 689px" /></figure></div>



<p>If you get error for the fonts try the following command</p>



<pre class="wp-block-verse">sudo apt-get update -y<br>sudo apt-get install -y xfonts-75dpi</pre>



<p>You can see the following results upon successful Installation.</p>



<pre class="wp-block-verse">(Reading database … 172496 files and directories currently installed.)<br> Preparing to unpack wkhtmltox_0.12.5-1.bionic_amd64.deb …<br> Unpacking wkhtmltox (1:0.12.5-1.bionic) over (1:0.12.5-1.bionic) …<br> Setting up wkhtmltox (1:0.12.5-1.bionic) …<br> Processing triggers for man-db (2.8.3-2ubuntu0.1) …</pre>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="685" height="476" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/successfull-installation-of-wkhtmltopdf.jpg" alt="" class="wp-image-16413" srcset="https://www.osradar.com/wp-content/uploads/2019/12/successfull-installation-of-wkhtmltopdf.jpg 685w, https://www.osradar.com/wp-content/uploads/2019/12/successfull-installation-of-wkhtmltopdf-300x208.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/successfull-installation-of-wkhtmltopdf-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/12/successfull-installation-of-wkhtmltopdf-218x150.jpg 218w, https://www.osradar.com/wp-content/uploads/2019/12/successfull-installation-of-wkhtmltopdf-604x420.jpg 604w" sizes="(max-width: 685px) 100vw, 685px" /></figure></div>



<h4><strong>Step 2: Install wkhtmltopdf on Debian 10 / Debian 9</strong></h4>



<p>To Install on Debian 9 type the following command</p>



<pre class="wp-block-verse">sudo apt update<br>sudo apt -y install wget<br>wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb<br>sudo dpkg -i wkhtmltox_0.12.5-1.stretch_amd64.deb<br>sudo apt -f install</pre>



<p>Make sure to check the Installed version to verify your Installation.</p>



<pre class="wp-block-verse">$ wkhtmltopdf --version<br>wkhtmltopdf 0.12.5 (with patched qt)<br><br><br>$ wkhtmltoimage --version<br>wkhtmltoimage 0.12.5 (with patched qt)</pre>



<h4><strong>Step 3: How to Use wkhtmltopdf on Ubuntu / Debian</strong></h4>



<p>Run the given command to convert a web page to PDF format.</p>



<pre class="wp-block-verse">$  wkhtmltopdf  &lt;webpage&gt; &lt;destination-pdf-file&gt;</pre>



<p>Look at the example:</p>



<pre class="wp-block-verse">wkhtmltopdf https://osradar.com osradar.pdf</pre>



<p><strong>Execution Output:</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="689" height="214" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/pdf-conversion.jpg" alt="" class="wp-image-16415" srcset="https://www.osradar.com/wp-content/uploads/2019/12/pdf-conversion.jpg 689w, https://www.osradar.com/wp-content/uploads/2019/12/pdf-conversion-300x93.jpg 300w" sizes="(max-width: 689px) 100vw, 689px" /></figure></div>



<p>As you can see the results, a pdf file is being created and you can now view the contents.</p>



<pre class="wp-block-verse">$ file osradar.pdf</pre>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="685" height="63" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/pdf-format.jpg" alt="" class="wp-image-16416" srcset="https://www.osradar.com/wp-content/uploads/2019/12/pdf-format.jpg 685w, https://www.osradar.com/wp-content/uploads/2019/12/pdf-format-300x28.jpg 300w" sizes="(max-width: 685px) 100vw, 685px" /></figure></div>



<p>You can convert to image using the same syntax as:</p>



<pre class="wp-block-verse">$  wkhtmltoimage  https://osradar.com osradar.png</pre>



<p>Congratulations! You&#8217;ve learned how we can convert our web pages to pdf and Image format using wkhtmltopdf &amp; wkhtmltoimage tool.<br>If you&#8217;ve any queries regarding this tutorial, feel free to ask!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-wkhtmltopdf-and-wkhtmltoimage-on-ubuntu-19-04-debian-10/">How To Install wkhtmltopdf and wkhtmltoimage on Ubuntu 19.04 / Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-wkhtmltopdf-and-wkhtmltoimage-on-ubuntu-19-04-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
