Crates.io | web2pdf |
lib.rs | web2pdf |
version | 0.1.0 |
source | src |
created_at | 2024-10-05 19:22:43.500279 |
updated_at | 2024-10-05 19:22:43.500279 |
description | A CLI tool to convert web pages to PDFs |
homepage | https://github.com/Nathan-Mossaad/web2pdf |
repository | https://github.com/Nathan-Mossaad/web2pdf |
max_upload_size | |
id | 1398405 |
size | 74,872 |
This project consists of two parts:
The main new feature compared to other PDF converters is the ability to create a single page PDF, that fits to the content, instead of a standard multi-page PDF.
It also allows provides the ability to use screen instead of printing CSS, thereby converting exactly what the user sees on the screen.
cargo install web2pdf
For the CLI tool, run "web2pdf --help"
Examle usage:
web2pdf --mono --screen --disable-backgrounds "https://en.wikipedia.org/wiki/Rust_(programming_language)" rust.pdf
web2pdf "document.html" rust.pdf
(Warning: Paths relative to home are not supported e.g. ~/document.html
but /home/user/document.html
will work)
Licensed under either of these: