{"id":28376306,"url":"https://github.com/sheepla/pdftree","last_synced_at":"2025-06-26T08:30:44.076Z","repository":{"id":291522022,"uuid":"977873421","full_name":"sheepla/pdftree","owner":"sheepla","description":"🌲 A command line tool to extract outline tree from PDF files","archived":false,"fork":false,"pushed_at":"2025-05-05T07:00:06.000Z","size":13,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T00:06:23.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sheepla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-05-05T05:31:43.000Z","updated_at":"2025-05-05T19:32:52.000Z","dependencies_parsed_at":"2025-05-05T06:43:24.824Z","dependency_job_id":null,"html_url":"https://github.com/sheepla/pdftree","commit_stats":null,"previous_names":["sheepla/pdftree"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sheepla/pdftree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheepla%2Fpdftree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheepla%2Fpdftree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheepla%2Fpdftree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheepla%2Fpdftree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheepla","download_url":"https://codeload.github.com/sheepla/pdftree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheepla%2Fpdftree/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262029770,"owners_count":23247531,"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","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":[],"created_at":"2025-05-30T00:06:23.485Z","updated_at":"2025-06-26T08:30:44.069Z","avatar_url":"https://github.com/sheepla.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# 🌲 pdftree\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n**pdftree** is a command line tool to extract outline tree from PDF file written in Rust.\n\n\u003c/div\u003e\n\n## Usage\n\nRun the program with the path to the PDF file as the first argument. Note that, of course, if the file has no outline, it will fail.\n\n```\nUsage: pdftree [OPTIONS] \u003cPATH\u003e\n\nArguments:\n  \u003cPATH\u003e\n\nOptions:\n  -j, --json  Output as JSON\n  -h, --help  Print help\n```\n\nFor example, `pdftree ./Professional_IPv6.pdf` will result in output like this.\n\n\u003cdetails\u003e\n\u003csummary\u003e Command line output \u003c/summary\u003e\n\n```\n- 表紙\n- 扉裏\n- 序文\n- 目次\n  - 更新履歴\n- 第I部 インターネットとIPv6の概要\n  - 第1章 インターネット概要\n    - 1.1 IPはパケット交換技術\n    - 1.2 層に分かれるネットワーク\n    - 1.3 トランスポート層の役割\n    - 1.4 オープンなプロトコルとRFC\n  - 第2章 IPv6概論\n    - 2.1 IPv6アドレス\n    - 2.2 IPv6アドレスのテキスト表記\n    - 2.3 IPv6アドレス体系\n    - 2.4 IPv6におけるユニキャストアドレスの構成要素\n    - 2.5 IPv6基本プロトコル\n    - 2.6 ICMPv6の役割\n    - 2.7 近隣探索プロトコル\n    - 2.8 IPv6アドレスの自動設定\n    - 2.9 1つのネットワークインターフェースに複数のIPv6アドレスが設定される\n    - 2.10 IPv6とIPv4の違い\n    - 2.11 IPv6対応とは\n    - 2.12 IPv6インターネットとIPv4インターネットを同時に使う\n    - 2.13 IPv4とIPv6の共存技術\n- 第II部 IPv6プロトコルとその周辺技術\n  - 第3章 IPv6アドレス体系\n    - 3.1 IPv6アドレスの種類\n    - 3.2 IPv6アドレス空間の使い方はIANAが管理している\n\n...\n```\n\n\u003c/details\u003e\n\nRun with the `--json` option to output the outline in JSON. For example, `pdftree --json . /Professional_IPv6.pdf` will produce the following output.\n\n\u003cdetails\u003e\n\u003csummary\u003eCommand line output\u003c/summary\u003e\n\n```json\n[\n  {\n    \"title\": \"表紙\",\n    \"children\": []\n  },\n  {\n    \"title\": \"扉裏\",\n    \"children\": []\n  },\n  {\n    \"title\": \"序文\",\n    \"children\": []\n  },\n  {\n    \"title\": \"目次\",\n    \"children\": [\n      {\n        \"title\": \"更新履歴\",\n        \"children\": []\n      }\n    ]\n  },\n  {\n    \"title\": \"第I部 インターネットとIPv6の概要\",\n    \"children\": [\n      {\n        \"title\": \"第1章 インターネット概要\",\n        \"children\": [\n          {\n            \"title\": \"1.1 IPはパケット交換技術\",\n            \"children\": []\n          },\n          {\n            \"title\": \"1.2 層に分かれるネットワーク\",\n            \"children\": []\n          },\n          {\n            \"title\": \"1.3 トランスポート層の役割\",\n            \"children\": []\n          },\n          {\n            \"title\": \"1.4 オープンなプロトコルとRFC\",\n            \"children\": []\n          }\n        ]\n      },\n      {\n        \"title\": \"第2章 IPv6概論\",\n        \"children\": [\n          {\n\n...\n```\n\n\u003c/details\u003e\n\n## Installation\n\nClone this repository then run `cargo install --path=.` .\n\n## Thanks\n\n- [lopdf](https://github.com/J-F-Liu/lopdf): A Rust library for PDF document manipulation. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheepla%2Fpdftree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheepla%2Fpdftree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheepla%2Fpdftree/lists"}