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!