<?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>Install wkhtmltopdf on Debian Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/install-wkhtmltopdf-on-debian/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 04 Dec 2020 23:17:28 +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 20.04</title>
		<link>https://www.osradar.com/how-to-install-wkhtmltopdf-and-wkhtmltoimage-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-wkhtmltopdf-and-wkhtmltoimage-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 07 Dec 2020 02:28:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How To Install wkhtmltopdf &wkhtmltoimage On Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[Install wkhtmltopdf on Debian]]></category>
		<category><![CDATA[ubuntu 20.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26086</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’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.Follow [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-wkhtmltopdf-and-wkhtmltoimage-on-ubuntu-20-04/">How To Install wkhtmltopdf and wkhtmltoimage On Ubuntu 20.04</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’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.Follow the guide to get started that <a href="https://www.osradar.com/?p=26086" target="_blank" rel="noreferrer noopener">how we can Install wkhtmltopdf</a> &amp; wkhtmltoimage on Ubuntu 20.04 Linux.</p>



<p>They both use the <a href="https://www.osradar.com/install-qtcreator-on-ubuntu-20-04-18-04/" target="_blank" rel="noreferrer noopener">QT</a> WebKit rendering engine to perform the actions.</p>



<p>By default, the versions available on Ubuntu are old for these tools. So, we have to Install them manually. </p>



<p>First of all we’ll download the tools from .deb package. Further these tools do not require a display so they are entirely headless.</p>



<h3>Step 1: Update Your System</h3>



<p>First of all update your system to have the latest updates installed.</p>



<pre class="wp-block-preformatted">sudo apt update -y</pre>



<h3>Step 2:Install wkhtmltopdf on Ubuntu 20.04</h3>



<h5>On Ubuntu 20.04:</h5>



<pre class="wp-block-preformatted">wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb<br>sudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$<strong> sudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb</strong>
[sudo] password for sabi:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting 'wkhtmltox' instead of './wkhtmltox_0.12.6-1.focal_amd64.deb'
The following additional packages will be installed:
xfonts-75dpi
The following NEW packages will be installed:
wkhtmltox xfonts-75dpi
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,368 kB/19.1 MB of archives.
After this operation, 144 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 /home/sabi/wkhtmltox_0.12.6-1.focal_amd64.deb wkhtmltox amd64 1:0.12.6-1.focal [15.7 MB]
Get:2 http://pk.archive.ubuntu.com/ubuntu focal/universe amd64 xfonts-75dpi all 1:1.0.4+nmu1 [3,368 kB]
Fetched 3,368 kB in 3s (1,121 kB/s)
Selecting previously unselected package xfonts-75dpi.
(Reading database … 200571 files and directories currently installed.)
Preparing to unpack …/xfonts-75dpi_1%3a1.0.4+nmu1_all.deb …
Unpacking xfonts-75dpi (1:1.0.4+nmu1) …
Selecting previously unselected package wkhtmltox.
Preparing to unpack …/wkhtmltox_0.12.6-1.focal_amd64.deb …
Unpacking wkhtmltox (1:0.12.6-1.focal) …
Setting up xfonts-75dpi (1:1.0.4+nmu1) …
Setting up wkhtmltox (1:0.12.6-1.focal) …
Processing triggers for man-db (2.9.1-1) …
Processing triggers for fontconfig (2.13.1-2ubuntu3) …
Processing triggers for libc-bin (2.31-0ubuntu9.1) …</pre>



<p>Verify the installed version by typing.</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ wkhtmltopdf --version<br>wkhtmltopdf 0.12.6 (with patched qt)<br>sabi@Ubuntu20:~$ wkhtmltoimage --version<br>wkhtmltoimage 0.12.6 (with patched qt)</pre>



<h5>Ubuntu 18.04:</h5>



<pre class="wp-block-preformatted">wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb<br>sudo apt install ./wkhtmltox_0.12.6-1.bionic_amd64.deb</pre>



<h5>On Ubuntu 16.04:</h5>



<pre class="wp-block-preformatted">wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.xenial_amd64.deb<br>sudo apt install ./wkhtmltox_0.12.6-1.xenial_amd64.deb</pre>



<p><strong>Note</strong>:If you get error for the fonts try the following command.</p>



<pre class="wp-block-preformatted">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>



<h3>Step 3: How to Use wkhtmltopdf on Ubuntu 20.04</h3>



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



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



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



<h5>Execution Output:</h5>



<p>A pdf file will be created and you can view the contents once it finished by typing</p>



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



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



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



<p>Congratulations! You’ve learned how we can convert our web pages to pdf and Image format using wkhtmltopdf and wkhtmltoimage tool.</p>



<p>If you’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-20-04/">How To Install wkhtmltopdf and wkhtmltoimage On Ubuntu 20.04</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-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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>
