Crates.io | pdf-live-server |
lib.rs | pdf-live-server |
version | 0.0.1 |
source | src |
created_at | 2024-08-11 14:01:40.751751 |
updated_at | 2024-08-12 10:53:44.540474 |
description | Serve a PDF live while watching for changes and reloading the browser. |
homepage | |
repository | https://github.com/SichangHe/pdf-live-server |
max_upload_size | |
id | 1333344 |
size | 60,454 |
I developed this for remote LaTeX editing with previewing.
cargo install pdf-live-server
$ pdf-live-server --help
Serve a PDF file live and reload the browser on changes
Usage: pdf-live-server [OPTIONS] --served-pdf <SERVED_PDF>
Options:
-d, --watch-dir <WATCH_DIR> Directory to watch for changes [default: ./]
-f, --served-pdf <SERVED_PDF> PDF file to serve. I also check its modified time to decide if changes occur
-s, --socket-addr <SOCKET_ADDR> Address to bind the server [default: 127.0.0.1:3000]
-h, --help Print help