Web2pdf
🔄 CLI to convert Webpages to PDFs 🚀
Install / Use
/learn @dvcoolarun/Web2pdfREADME
Web2pdf
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!
<a href="https://www.buymeacoffee.com/web2pdf" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>

Features
- 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
Usage/Installation
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
OR with Docker ( To save the file from container to directory using mount volume )
docker build -t web2pdf .
docker run -it -v $(pwd):/app/ web2pdf
Just add the webpage URLs separated by commas, and the tool will convert them to PDFs.
Development
You can clone the repository and install the package using the following commands
git clone
cd webp2pdf
pipenv install
Contributing
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!
<!-- GitAds-Verify: 4O9V9U4L3E15QJBTLHTQFUGDRJXKLFGJ -->GitAds Sponsored
Related Skills
imsg
329.0kiMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
node-connect
329.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
openai-image-gen
329.0kBatch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
oracle
329.0kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
