{"id":18403704,"url":"https://github.com/russellluo/pdfbookmarker","last_synced_at":"2025-08-20T08:31:35.447Z","repository":{"id":11431206,"uuid":"13885074","full_name":"RussellLuo/pdfbookmarker","owner":"RussellLuo","description":"Add bookmarks into PDF using PyPDF2","archived":false,"fork":false,"pushed_at":"2023-09-01T13:35:04.000Z","size":18,"stargazers_count":82,"open_issues_count":4,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-06T06:11:53.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/RussellLuo.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}},"created_at":"2013-10-26T14:41:21.000Z","updated_at":"2024-11-28T04:46:35.000Z","dependencies_parsed_at":"2022-08-07T06:16:17.640Z","dependency_job_id":null,"html_url":"https://github.com/RussellLuo/pdfbookmarker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Fpdfbookmarker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Fpdfbookmarker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Fpdfbookmarker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussellLuo%2Fpdfbookmarker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RussellLuo","download_url":"https://codeload.github.com/RussellLuo/pdfbookmarker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230408170,"owners_count":18220974,"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":"2024-11-06T02:47:58.964Z","updated_at":"2024-12-19T09:06:27.401Z","avatar_url":"https://github.com/RussellLuo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDFBookmarker\n\nAdd bookmarks into PDF using [PyPDF2][1].\n\n\n## Installation\n\nInstall pdfbookmarker:\n\n```bash\n$ pip install pdfbookmarker\n```\n\n## Usage\n\n1. Turn to your target PDF (e.g. `MyBook.pdf`), record bookmark titles and page\n   numbers of the PDF into a TEXT file (e.g. `my_bookmarks.txt`) **by hand** \n   with the following format:\n\n    ```\n    \u003cnested level\u003e\"\u003cbookmark title\u003e\"|\u003cpage number\u003e\n    ```\n\n    For samples, see [sample_bookmarks.txt](sample_bookmarks.txt). (Offsets are also\n    supported, see [here](https://github.com/RussellLuo/pdfbookmarker/pull/7#issuecomment-711136889))\n\n2. Generate a copy of `MyBook.pdf` with additional bookmarks file specified by\n   `my_bookmarks.txt`:\n\n    ```bash\n    $ pdfbm MyBook.pdf my_bookmarks.txt\n    ```\n\n    An auto-detected, expected or suggested filename for bookmarks is `MyBook.txt`,\n    when the input filenamne e.g. is `MyBook.pdf`.\n    \n    The default filename of the output PDF is `MyBook-new.pdf`; You, of course, can\n    specify the filename explicitly:\n    \n    ```bash\n    $ pdfbm MyBook.pdf my_bookmarks.txt MyBook_with_bookmarks.pdf\n    ```\n\n\n## License\n\n[MIT][2]\n\n\n[1]: https://github.com/mstamy2/PyPDF2\n[2]: http://opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frussellluo%2Fpdfbookmarker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frussellluo%2Fpdfbookmarker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frussellluo%2Fpdfbookmarker/lists"}