Sie sind auf Seite 1von 5

Distribuiţi Raportaţi un abuz Următorul blog» Creaţi blog Autentificare

Enter your email address Subscribe

Home
Tags
Ubuntu PPAs
Contact

RSS
Search
Follow
If you are new to WebUpd8, Subscribe To Web Subscribe to our Andrew Like us on Follow us on
WebUpd8 on
don't forget to subscribe: Upd8 RSS Feed! YouTube channel! on Last.fm Facebook! Google Buzz!
Twitter!

Convert HTML to PDF [Linux]

Linux Security Software store.bluecherry.net


Hardware compression DVR cards Ubuntu based
distribution!

There are numerous ways one can convert a web page (HTML) to PDF. Some using websites, a Firefox addon, but here is how
to do it in Linux.

You could just, select "Print" (in Firefox: File > Print ) and then select "Print to file" and the output "PDF".

But some pages with lots of CSS, javascript and so on won't be displayed correctly. For this, see the second method of
converting webpages (html) to PDF (below).

Using wkhtmltopdf

To install wkhtmltopdf in Ubuntu, run the following command in a terminal:


sudo apt-get install wkhtmltopdf

Then, to convert a webpage to PDF, open a terminal and type this:


wkhtmltopdf http://www.webupd8.org webupd8.pdf

Replacing http://www.webupd8.org and webupd8.pdf with the website you want to convert to PDF / the name you desire for the
converted PDF file.

The output of wkhtmltopdf is pretty good. Take a look:


With wkhtmltopdf, you can disable the javascript on the page if you want, change the quality, orientation (portrait or landscape),
and more. Too see everything wkhtmltopdf can do, type:

wkhtmltopdf --help

www.NucleusTechnologies.com/ Ads by Google

Tags: converter, html, linux, pdf, ubuntu


Posted by Andrew | 22 November, 2009
View Comments

Related Posts by tags

converter

HandBrake DVD Ripper And Audio / Video Converter Updated To Version 0.9.4, Adds 64bit Support
iConvert: Convert Images To Icons For Windows, Linux And Mac
Convert Any Format to MP3 / AVI With Crazy Media Converter [Windows]

html

Google Analytics Public Visitors HTML Counter For Any Website With Sharega (Free)
MobaPhoto Creates HTML Image Galleries And Does Basic Photo Editing [Portable, Freeware]
3 New Free Cheat Sheets For Web Designers and Developers [And A Bonus]

linux

Sun Java Finally Uploaded To The Ubuntu 10.10 Maverick Official Partner Repository
Install Banshee 1.8.0 (Stable) In Ubuntu [PPA]
Glippy Clipboard Manager Can Now Upload Images To Imgur
CLI Companion Makes It Easier To Use The Terminal

Loading comments...

Links to this post


Links to this post

Convert HTML to PDF

Create a Link

Newer Post Older Post

www.NucleusTechnologies.com/ Ads by Google

Advertise on Web Upd8

10 10

October 10th

Just 7 Days left!

Recent
Editor's Pick
Popular Posts

Recent
Glippy Clipboard Manager Can Now Upload Images To Imgur
CLI Companion Makes It Easier To Use The Terminal
Ubuntu Font Will Be Default In 10.10
Ubuntu 10.10 Maverick Meerkat Release Candidate Is Out - See What's New!
AWN Radio Applet Is Available In The WebUpd8 PPA
How To Add MPD To The Ubuntu Sound Menu
AWN Window Manager (Tile) - New Avant Window Navigator Applet
gThumb 2.12.0 (Stable) Has Been Released [Ubuntu PPA]
RhythmArty: Browse Your Music Collection Via Album Art [Rhythmbox Plugin]
Firefox Elementary (Theme) 2.0, Released

Editor's Pick
What To Do After A Fresh Ubuntu Install Script For Ubuntu 10.04 Lucid Lynx
Avant Window Navigator Update (PPA) Finally Brings Multiple Docks And Helpers
Enable RGBA Transparency In Ubuntu 9.10 Karmic Koala and Ubuntu 10.04 Lucid Lynx
Install Nautilus Elementary (2.30) In Ubuntu 10.04 Lucid Lynx
Minitube 1.0 Released - Play YouTube Videos Without Flash [Ubuntu .deb Download]
How To Disable IPv6 In Ubuntu 10.04 Lucid Lynx
GUI To Configure NotifyOSD In Ubuntu
How To Get The Most Out Of Ubuntu Netbook Edition [Optimization Tips]
Install Linux Mint Main Menu (MintMenu) In Ubuntu From A PPA
Cairo Dock (GLX-Dock) 2.2.0 Beta Gets Multiple Instances Support
Install The Ubuntu 10.10 Light Themes In Ubuntu 10.04 From A PPA Repository
Easy Way To Sync Your iPhone / iPod Touch With Rhythmbox, Nautilus, Etc. In Ubuntu
Faster Browsing In Linux With Local DNS Cache
Battery Status 0.1 Released - Improved Battery Applet For The Gnome Desktop
3 Linux Console File Managers You Should Try: Midnight Commander (MC), Last File Manager (LFM) And VIFM
How To Recover GRUB2 [Linux]
Automatically Download All The Wallpapers From National Geographic (Almost 400 Wallpapers) [Windows, Linux, Mac
OS X]
12 Great Gnome Themes with Ubuntu Repositories
[How-To] Listen to Pandora And Spotify Outside US / UK In Linux, Using TOR (With Country Specific Exit Nodes)
Gnome Music Player Client (GMPC) + MPD - Just WOW [Linux]
Install Wallpaper Clocks In Ubuntu Linux
How To Extract All Text From PDFs (Including Text In Images) [Ubuntu]
How To Add / Remove Applets From The Gnome Panel In Ubuntu Netbook Edition 10.04 [UNE Panel Locked - Fix]
4 Ways to Create Bootable Live USB Drives (For Windows, Linux and Mac OS X)
Websites to Watch TV Online for Free
Gimp Paint Studio [Gimp Optimized for Drawing and Painting]
Ubuntu Newbie Guide: Compiz, How to Get the Cube and Mac-like Dock Bar (Avant Window Navigator) [part 4]
Use NameBar And DockBarX To Optimize Your Screen Real Estate [Ubuntu]
How To Create A .DEB Package [Ubuntu / Debian]
What Is And How To Install Swiftfox Web Browser in Ubuntu and Other Linux Distributions
Audio / Video Encoding Guide

Popular Posts

Ubuntu 10.10 Maverick Meerkat Release Candidate Is...


Ubuntu 10.10 Release Candidate has just been released. There aren't too many visual changes since the
beta version (most of the visual chan...

Hotot: A New Lightweight Twitter Client For Linux


Hotot is a new lightweight Twitter client for Linux (though I see there's also a Windows package available
too) which although still in Alp...

FolderView: Rhythmbox Plugin To Browse Your Music ...


I've recently discovered a new Rhythmbox plugin called FolderView. Like the name suggests, this plugin
allows you to browse the music in Rh...

Install Banshee 1.8.0 (Stable) In Ubuntu [PPA]


Banshee 1.8.0 (stable) has been released yesterday. There are many new features and improvements since
the last stable version: Amazon MP3 ...

Ubuntu Font Will Be Default In 10.10


A recent update in Ubuntu 10.10 Maverick Meerkat (it probably didn't reach the users yet) sets the Ubuntu font as the
default Application, W...

RhythmArty: Browse Your Music Collection Via Album...


RhythmArty is a Rhythmbox plugin that allows you to browse your music collection via album art. I didn't post
about it until now because it...

Ubuntu 10.10 Maverick Meerkat Beta Has Been Releas...


Ubuntu 10.10 Maverick Meerkat Beta has been released seconds ago. There have been many changes and
updates in Ubuntu 10.10 Maverick Meerkat...

The Ubuntu Font Family Is Now Available In Ubuntu ...


The new Ubuntu font ("Ubuntu Font Family") has just been uploaded to the Ubuntu 10.10 Maverick Meerkat
official repositories and is now shi...

Firefox 4.0 Removes The Statusbar But Adds A New A...


(Notice the Add-on Bar at the bottom) Add-on Bar vs StatusbarJust when I though Firefox 4 is finally coming
together, the latest Firefox 4...

Run Mac OSX In Virtualbox Under Linux (Ubuntu) And...


Lifehacker has a nice post on installing the latest Mac OSX (OSX86) in VirtualBox on Windows, however
their instructions work for Linux too...

Ads by Google
Doc to PDF Converter
PDF Conversion
PDF Software
JPEG into PDF

Featured This Week


Firefox 4 For Linux Video / Screenshots Preview (Beta 7 Pre)
Run Mac OSX In Virtualbox Under Linux (Ubuntu) And Windows
Nautilus Script To Easily Share Any File With Dropbox And Copy The Public Links To The Clipboard
5 Beautiful Elementary-ish Gnome Themes
FolderView: Rhythmbox Plugin To Browse Your Music By Folders

Web Upd8 pe Facebook

Îmi place

2,902 oameni apreciază Web Upd8

Madalin Luthfi Jake Rulo Raj

Rhodora Rose Jay Владимир Andres

Modul social Facebook

Blog Archive

Blog Archive

Stats

Statcounter Stats

People online:

Public statistics

License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Romania License .

Friend Connect

Blogroll
Tech Drive-In
Renne
Linux Alternative Project
HowtoForge
Web Design Blog
UbuCentrum
Qwest high speed Internet
Tech Hamlet

Design by: Daily Blog Tips | PassionDuo Blue Blogger Template | Modified by hotice ® | Disclaimer
WebUpd8 is a blog which delivers the latest news, tips, tricks and application reviews for Linux (mostly Ubuntu) and open
source but also some occasional Windows software or web-related articles.

Das könnte Ihnen auch gefallen