Skip to content

deltachat-bot/web2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web to PDF

Latest Release CI Code style: black

Delta Chat bot that allows to fetch websites as PDF. Just send any URL to the bot in private or add it to get a PDF in any message containing an URL.

Install

pip install deltabot-web2pdf

You also need to install wkhtmltopdf package. Debian/Ubuntu example:

sudo apt-get install wkhtmltopdf

Warning! Version in debian/ubuntu repos have reduced functionality (because it is compiled without the wkhtmltopdf QT patches), such as adding outlines, headers, footers, TOC etc. To use this options you should install static binary from wkhtmltopdf site: https://wkhtmltopdf.org/

Usage

Configure the bot's Delta Chat account:

web2pdf init bot@example.com PASSWORD

You can run web2pdf init several times to add multiple different accounts to the bot so it can be reached in more than one email address.

The bot's display name, avatar and status/signature can also be tweaked:

web2pdf config selfavatar "/path/to/avatar.png"
web2pdf config displayname "My Bot"
web2pdf config selfstatus "Hi, I am a Delta Chat bot"

To run the bot so it starts processing messages:

web2pdf serve

To see all available options run web2pdf --help

About

Download webpages as PDF files in Delta Chat

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages