{"id":20252278,"url":"https://github.com/7kms/pdf-operate","last_synced_at":"2025-10-10T00:03:04.098Z","repository":{"id":106335211,"uuid":"314586749","full_name":"7kms/pdf-operate","owner":"7kms","description":"pdf文件添加书签","archived":false,"fork":false,"pushed_at":"2020-11-20T15:07:03.000Z","size":7155,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-08T09:47:25.602Z","etag":null,"topics":["bookmarks","pdf"],"latest_commit_sha":null,"homepage":"","language":"Java","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/7kms.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}},"created_at":"2020-11-20T15:02:34.000Z","updated_at":"2020-11-20T15:13:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"353dd5c2-1d2a-40fe-9cc5-99bd9117ff07","html_url":"https://github.com/7kms/pdf-operate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/7kms/pdf-operate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7kms%2Fpdf-operate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7kms%2Fpdf-operate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7kms%2Fpdf-operate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7kms%2Fpdf-operate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7kms","download_url":"https://codeload.github.com/7kms/pdf-operate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7kms%2Fpdf-operate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002366,"owners_count":26083355,"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-10-09T02:00:07.460Z","response_time":59,"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":["bookmarks","pdf"],"created_at":"2024-11-14T10:16:00.254Z","updated_at":"2025-10-10T00:03:04.082Z","avatar_url":"https://github.com/7kms.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF Operate\n\u003e pdf 常用操作小工具\n\n## 添加书签\n\u003e 当拿到一个扫描版的pdf文件且没有目录的时候, 会比较尴尬\n\n使用步骤:\n\n1. 通过京东,当当,豆瓣等网站拿到该pdf书籍的正确目录(当然如果实在获取不到, 只能手动添加少量目录了)\n2. 拿到目录之后, 将其保存到`./src/main/resources/outlines.txt`中\n3. 运行`com.km7`包下的`PDF.java`, 会分析目录页码, 并生成一个新的pdf文件(`out.pdf`)\n4. 源码保存在`PDF.java`中\n\n后续实现:\n\n1. 由于目录的格式不好把控, 目前只能识别页码放在最后的情况, 后面会考虑通过缩进或其他方式识别. 如:\n```text\n第1章　如何分析macOS软件.. 1\n\n1.1　分析环境搭建.... 1\n\n1.1.1　安装Clang.. 1\n\n1.1.2 HT Editor. 2\n\n1.1.3 Homebrew.. 6\n```\n其中对于二级,三级等子级目录没有一个统一的标准, 比较难以识别.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7kms%2Fpdf-operate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7kms%2Fpdf-operate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7kms%2Fpdf-operate/lists"}