TUTORIAL Working With Wkhtmltopdf
TUTORIAL Working With Wkhtmltopdf
TUTORIAL Working With Wkhtmltopdf
OPEN SOURCE 41
Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators | 4 Free Shell Scripting eBooks
Wkhtmltopdf is an open source simple and much effective command-line shell utility that enables user to convert any given HTML (Web Page) to PDF
document or an image (jpg, png, etc).
Wkhtmltopdf is written in C++ programming language and distributed under GNU/GPL (General Public License). It uses WebKit rendering layout
engine to convert HTML pages to PDF document without loosing the quality of the pages. Its is really very useful and trustworthy solution for creating
and storing snapshots of web pages in real-time.
Wkhtmltopdf Features
Open source and cross platform.
Convert any HTML web pages to PDF files using WebKit engine.
Options to add headers and footers
Table of Content (TOC) generation option.
Provides batch mode conversions.
Support for PHP or Python via bindings to libwkhtmltox.
In this article we will show you how to install Wkhtmltopdf program under Linux systems using source tarball files.
Download wkhtmltopdf source files for your Linux architecture using Wget command, or you can also download latest versions (current stable series
is 0.12.4) at wkhtmltopdf download page.
On 64-bit Linux OS
$ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_
linux-generic-amd64.tar.xz
On 32-bit Linux OS
$ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_
linux-generic-i386.tar.xz
Install the wkhtmltopdf under /usr/bin directory for easy execution of program from any path.
Sample Output :
Loading pages (1/6)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
$ file 10-Sudo-Configurations.pdf
Sample Output :
$ pdfinfo 10-Sudo-Configurations.pdf
Sample Output :
Sample Screenshot :
Looks pretty nice under my Linux Mint 17 box.
To check the TOC for the created file, again use evince program.
$ evince 10-Sudo-Configurations.pdf
Sample Screenshot :
Take a look at the picture below. it looks even more better than the above.
Create Website Page to Table of Contents in PDF
$ wkhtmltopdf --help
SHARE
+ +
Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.
Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.
NEXT STORY
5 Reasons To Install Linux Today
PREVIOUS STORY
Min – A Lighter, Faster and Secure Web Browser for Linux
21 16
RainLoop Webmail – A Modern Fast Web Based Email Client for Linux How to Install and Run VLC Media Player as Root in Linux
41 RESPONSES
Comments 3 Pingbacks 0
« Older Comments
Name * Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Notify me of followup comments via e-mail. You can also subscribe without commenting.
Post Comment
This site uses Akismet to reduce spam. Learn how your comment data is processed .
I TecMint :
How to Add Linux Host to Nagios Monitoring Server Using NRPE Plugin
BARRYKANE SAYS:
I use Allavsoft to download YouTube to MP4, MP3, WAV, etc
LINUX EBOOKS
Never Miss Any Linux Tutorials, Guides, Tips and Free eBooks
Join Our Community Of 150,000+ Linux Lovers and get a weekly newsletter in your inbox
YES! SIGN ME UP
Iotop – Monitor Linux Disk I/O Activity and Usage Per-Process Basis
How to Install and Configure ‘Collectd’ and ‘Collectd-Web’ to Monitor Server Resources in Linux
Tecmint: Linux Howtos, Tutorials & Guides © 2019. All Rights Reserved.
The material in this site cannot be republished either online or offline, without our permission.
Hosting Sponsored by : Linode Cloud Hosting