Web2pdf: Convert Webpages to PDFs with Python


CLI to convert webpages to PDFs

Web2pdf is a command line tool that converts webpages to Beautifully formatted pdfs.

If this project proves useful to you in any way, please consider supporting me by buying a coffee!



  • Features
    • 💥 Batch Conversion: Convert multiple webpages to PDFs in one go.
    • 🔄 Custom Styling: Tailor the appearance of your PDFs with customizable CSS, allowing you to adjust everything from fonts to background colors.
    • 📄 Additional CSS: Flexibility to add custom CSS for further customization.
    • 🔗 Multi-column Support: Benefit from multi-column support for more complex PDF layouts.
    • 📚 Page Numbers: Add page numbers to your PDFs for easier navigation.
    • 🔢 Table of Contents: Automatically generate a table of contents based on the headings in your HTML.
    • 🔢 Page Numbers: Add page numbers to your PDFs for easier navigation.
    • 🚦 Page Breaks: Control page breaks to ensure your PDFs are formatted exactly as you want them.
    • 👍 Much more


To install it right away for all UNIX users (Linux, macOS, etc.), type:

git clone https://github.com/dvcoolarun/web2pdf.git

Then you can use the tool as follows

pipenv shell
pipenv install
python main.py

Just add the webpage URLs separated by commas, and the tool will convert them to PDFs.


You can clone the repository and install the package using the following commands

git clone
cd webp2pdf
pipenv install


This CLI is in its early version, and we encourage the community to help improve code, testing, and additional features. Feel free to contribute to the project by submitting pull requests, reporting issues, or suggesting new features. Your contributions are highly appreciated!

Download Details:

Author: dvcoolarun
Source Code: https://github.com/dvcoolarun/web2pdf 

#python #cli #automation #printing #pdf 

Web2pdf: Convert Webpages to PDFs with Python
1.05 GEEK