{"id":31225042,"url":"https://github.com/0xheartcode/book2pdf","last_synced_at":"2025-09-22T00:30:55.283Z","repository":{"id":310712624,"uuid":"1040919208","full_name":"0xheartcode/book2pdf","owner":"0xheartcode","description":"Create PDFs from online documentation","archived":false,"fork":false,"pushed_at":"2025-08-19T18:49:04.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-19T20:41:28.024Z","etag":null,"topics":["docs","pdf","reader","rust","scraping"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xheartcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-19T17:46:56.000Z","updated_at":"2025-08-19T18:49:07.000Z","dependencies_parsed_at":"2025-08-19T20:41:30.659Z","dependency_job_id":"13693111-9012-4b73-a15b-68aea54e4c95","html_url":"https://github.com/0xheartcode/book2pdf","commit_stats":null,"previous_names":["0xheartcode/book2pdf"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/0xheartcode/book2pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xheartcode%2Fbook2pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xheartcode%2Fbook2pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xheartcode%2Fbook2pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xheartcode%2Fbook2pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xheartcode","download_url":"https://codeload.github.com/0xheartcode/book2pdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xheartcode%2Fbook2pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276328897,"owners_count":25623323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docs","pdf","reader","rust","scraping"],"created_at":"2025-09-22T00:30:51.861Z","updated_at":"2025-09-22T00:30:54.934Z","avatar_url":"https://github.com/0xheartcode.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# book2pdf\n\nA CLI utility to convert documentation websites into PDF files for offline reading.\n\n**⚠️ Clunky Alpha Software** - Basic functionality works but expect stability issues.\n\n## Requirements\n\n- **Rust 1.70+** - [Install Rust](https://rustup.rs/)\n- **Chrome/Chromium browser** - Must be installed and accessible in PATH\n- **Internet connection** - For website scraping\n\n## Installation\n\n### Build from Source\n\n```bash\ngit clone \u003cyour-repo-url\u003e\ncd book2pdf\ncargo build --release\n```\n\nThe binary will be available at `target/release/book2pdf`\n\n### Run Directly (Development)\n\n```bash\ngit clone \u003cyour-repo-url\u003e\ncd book2pdf\ncargo run -- download https://docs.example.com\n```\n\n## Usage\n\nHere is a concrete example:\n\n```bash\ncargo run -- download \"https://claritychallenge.org/clarity_CEC1_doc/docs/intro\"\n```\n\n### Main Command\n\nCLI utility to turn a published GitBook website into a collection of PDFs for offline reading\n```\nUsage: book2pdf \u003cCOMMAND\u003e\n\nCommands:\n  download  Download and convert documentation website to a combined PDF (default behavior)\n  merge     Merge existing PDF files into a single document\n  help      Print this message or the help of the given subcommand(s)\n\nOptions:\n  -h, --help     Print help\n  -V, --version  Print version\n```\n\n### Download Command\n\nDownload and convert documentation website to a combined PDF (default behavior)\n```\nUsage: book2pdf download [OPTIONS] \u003cURL\u003e\n\nArguments:\n  \u003cURL\u003e  URL of the website to scrape\n\nOptions:\n  -o, --outDir \u003cOUT_DIR\u003e   Output directory used to save files [default: output_book2pdf]\n      --no-combine         Don't combine PDFs into a single file (by default PDFs are combined)\n  -p, --preserve-pages     Preserve individual page PDFs (by default they are deleted after combining)\n  -t, --timeout \u003cTIMEOUT\u003e  Request timeout in seconds [default: 30.0]\n  -h, --help               Print help\n```\n\n### Merge Command\n\nMerge existing PDF files into a single document\n\n```\nUsage: book2pdf merge [OPTIONS]\n\nOptions:\n  -d, --dir \u003cINPUT_DIR\u003e       Directory containing PDF files to merge [default: output_book2pdf/pages]\n  -o, --output \u003cOUTPUT_FILE\u003e  Output file path for the merged PDF [default: merged.pdf]\n  -h, --help                  Print help\n```\n\n## Examples\n\n### Basic Usage\n\n```bash\n# Download and convert a GitBook site (creates combined PDF by default)\n./target/release/book2pdf download https://docs.example.com\n\n# Or during development\ncargo run -- download https://docs.example.com\n\n# Download to custom directory\nbook2pdf download https://docs.example.com --outDir my-docs\n\n# Keep individual page PDFs alongside combined PDF\nbook2pdf download https://docs.example.com --preserve-pages\n\n# Don't combine - keep only individual page PDFs\nbook2pdf download https://docs.example.com --no-combine\n```\n\n### Merge Existing PDFs\n\n```bash\n# Merge PDFs from default directory\nbook2pdf merge\n\n# Merge from custom directory\nbook2pdf merge --dir my-pdfs --output combined-docs.pdf\n```\n\n## Development\n\n```bash\n# Check code\ncargo check\n\n# Run tests\ncargo test\n\n# Build release binary\ncargo build --release\n\n# Generate documentation\ncargo doc --open\n```\n\n\n\n```\n:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::::::::::::::::::::::::::::  :::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::::::::::::::::::::   -  ::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::🌐::::::::::::::::::::.       :::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::.:::::::::::::::::   -=-  .::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::-::::::::::::::          :::::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::-::::::::::::  =       ::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::.:::::::::      =    :::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::     ::::            :::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::.      ::: :   @  @  :::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::      ::@@%@+      :::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::        -@@++. @  ::::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::        @@@@@@@# :::::::::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::::::        @@@@@@@  ::::::::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::::::::::    @@@@@@@*    :::::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::::::::::::   @@@@@@@=     :::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::::::::::::    @@@@@@@    📜::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::::::::::::     @@@@@@@:  ::::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::::::::::::       @@@@@+   :::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::::::::::               :::::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::::::::::::::                :::::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::::::::::::::                #-:::::::::::::::::::::::::::::::\n::::::::::::::::::::::::::::::::::::::::::::.                %:::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::::::::::::::::::-*%@@=::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xheartcode%2Fbook2pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xheartcode%2Fbook2pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xheartcode%2Fbook2pdf/lists"}