{"id":26913777,"url":"https://github.com/cosmix/imposer","last_synced_at":"2025-04-01T16:48:26.941Z","repository":{"id":282686313,"uuid":"890806405","full_name":"cosmix/imposer","owner":"cosmix","description":"A command-line tool for imposing PDF files into booklet format. It reorders pages so that when printed double-sided and folded, they create a properly ordered booklet.","archived":false,"fork":false,"pushed_at":"2025-03-16T09:17:05.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T10:23:49.696Z","etag":null,"topics":["booklet","imposition","pdf"],"latest_commit_sha":null,"homepage":"","language":"Go","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/cosmix.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":"2024-11-19T08:04:28.000Z","updated_at":"2025-03-16T09:17:08.000Z","dependencies_parsed_at":"2025-03-16T10:23:53.247Z","dependency_job_id":"eb0e1762-6a16-4224-b113-2fbbef09f2bc","html_url":"https://github.com/cosmix/imposer","commit_stats":null,"previous_names":["cosmix/imposer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmix%2Fimposer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmix%2Fimposer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmix%2Fimposer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmix%2Fimposer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmix","download_url":"https://codeload.github.com/cosmix/imposer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246674007,"owners_count":20815668,"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":["booklet","imposition","pdf"],"created_at":"2025-04-01T16:48:26.348Z","updated_at":"2025-04-01T16:48:26.925Z","avatar_url":"https://github.com/cosmix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# imposer\n\nA command-line tool for imposing PDF files into booklet format. It reorders pages so that when printed double-sided and folded, they create a properly ordered booklet.\n\n## Installation\n\n### Via go install\n```bash\ngo install github.com/cosmix/imposer/cmd/impose@latest\n```\n\n### Build from source\n```bash\ngit clone https://github.com/cosmix/imposer.git\ncd imposer\ngo build ./cmd/impose\n```\n\n## Usage\n\n```bash\n# Using flags\nimpose -i input.pdf -o output.pdf\n\n# Using positional arguments\nimpose input.pdf output.pdf\n```\n\n## How It Works\n\nThe tool performs the following operations:\n1. Reads the input PDF file\n2. Calculates the correct page order for booklet printing\n3. Reorders pages so that when printed double-sided and folded:\n   - Pages appear in the correct reading order\n   - The total page count is padded to a multiple of 4 if needed\n   - Pages are arranged in printer spreads (last-first, first-last pattern)\n\n## Example\n\nFor an 8-page document, pages will be arranged as:\n- Sheet 1 front: Page 8 | Page 1\n- Sheet 1 back: Page 2 | Page 7\n- Sheet 2 front: Page 6 | Page 3\n- Sheet 2 back: Page 4 | Page 5\n\nWhen printed double-sided, folded in half, and stacked, the pages will read in order from 1 to 8.\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmix%2Fimposer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmix%2Fimposer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmix%2Fimposer/lists"}