Save webpages as pdf file

Moderator: Forum moderators

Post Reply
User avatar
rockedge
Site Admin
Posts: 5825
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2078 times
Been thanked: 2174 times
Contact:

Save webpages as pdf file

Post by rockedge »

There are times that information on a web page will be needed while the system is off-line and a copy in a PDF format would be an easy and practical way of storing and accessing that web page.

To do this in Puppy Linux open the PPM (or from the command line with Pkg ) and search for and install wkhtmltopdf

In a terminal use it like this : wkhtmltopdf <webpage_url> <output_file>

Code: Select all

wkhtmltopdf http://puppylinux.com /root/Downloads/puppylinux.com.pdf
for help :

Code: Select all

wkhtmltopdf -h
screen coordinates can be given to only capture a region of an html page.

maybe a script can be assembled to grab pages with a drag and drop of the URL of the target pages.
Post Reply

Return to “Utilities”