{"id":15893471,"url":"https://github.com/multimeric/lastpdfpage","last_synced_at":"2025-04-02T17:43:04.430Z","repository":{"id":85377251,"uuid":"248143851","full_name":"multimeric/LastPdfPage","owner":"multimeric","description":"For each page number in a PDF, selects only the last page with that number, and then regenerates the PDF","archived":false,"fork":false,"pushed_at":"2020-03-18T06:59:14.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T05:23:34.427Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/multimeric.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}},"created_at":"2020-03-18T05:10:51.000Z","updated_at":"2021-05-12T22:09:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"a053b0b7-2c0b-475b-94fb-36fb9676fd4a","html_url":"https://github.com/multimeric/LastPdfPage","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/multimeric%2FLastPdfPage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FLastPdfPage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FLastPdfPage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FLastPdfPage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/multimeric","download_url":"https://codeload.github.com/multimeric/LastPdfPage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246863851,"owners_count":20846322,"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-10-06T08:10:58.914Z","updated_at":"2025-04-02T17:43:04.411Z","avatar_url":"https://github.com/multimeric.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LastPdfPage\n\nSometimes PDFs are generated for a powerpoint presentation, but then they don't work so well as PDF documents.\n\nFor example, a single slide in the presentation might be designed to show each bullet point sequentially when the\npresenter clicks.\nHowever, once this presentation is converted to a document, it becomes much harder to use because each\nbullet point now has its own page.\n\n`LastPdfPage` eliminates this problem by editing a PDF that has multiple pages with the same page number, and selecting\nonly the last (or first) page from each page range that has this issue.\n\n# Installation\n\nSimply run:\n\n```bash\npip install git+git://github.com/TMiguelT/LastPdfPage.git\n```\n\n# CLI\n\n```\nUsage: last-pdf-page [OPTIONS] PDF\n\nOptions:\n  --select [first|last]  Whether to choose the first, or last page for each\n                         number\n\n  --help                 Show this message and exit.\n```\n\nFor example, to edit a PDF and take only the last page of each page-range with the same number:\n```bash\nlast-pdf-page --select last somePdf.pdf \u003e fixed.pdf\n```\n\n# Python API\n\n```python\nfrom last_pdf_page import simplify_pdf\n\nwith open('fixed.pdf', 'wb') as fp:\n    simplify_pdf('somePdf.pdf', select='last', outfile=fp)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultimeric%2Flastpdfpage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultimeric%2Flastpdfpage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultimeric%2Flastpdfpage/lists"}