Introducing WebKitTool

WebKitTool.pngWebKitTool is a simple command line tool using Apple’s WebKit framework for converting web pages to PDF- or image files.

When creating PDFs, you can either create one page containing the whole web page or multiple pages, landscape or portrait.

Examples

Creating a single page PDF of www.google.com:

./WebKitTool www.google.com google.pdf

Creating a multipage PDF of www.engadget.com:

./WebKitTool -p http://www.engadget.com engadget.pdf

Creating a big PNG image of www.engadget.com:

./WebKitTool http://www.engadget.com engadget.png

Availability

The tool is 100% open source. The source code and the universal binary are hosted on GitHub. WebKitTool requires Mac OS X 10.4 or later. Enjoy!

This entry was posted in Mac, Software, Terminal. Bookmark the permalink.

Comments are closed.