{"id":22286949,"url":"https://github.com/koraa/pdfbrochure","last_synced_at":"2026-06-30T17:32:25.511Z","repository":{"id":7785265,"uuid":"9155184","full_name":"koraa/pdfbrochure","owner":"koraa","description":"Pdfbrochure is a tool to transform sequential PDFs to brochures using PDFjam","archived":false,"fork":false,"pushed_at":"2018-11-27T12:33:39.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T05:56:04.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koraa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-01T20:15:58.000Z","updated_at":"2018-11-27T12:33:40.000Z","dependencies_parsed_at":"2022-07-21T14:19:49.100Z","dependency_job_id":null,"html_url":"https://github.com/koraa/pdfbrochure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koraa/pdfbrochure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koraa%2Fpdfbrochure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koraa%2Fpdfbrochure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koraa%2Fpdfbrochure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koraa%2Fpdfbrochure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koraa","download_url":"https://codeload.github.com/koraa/pdfbrochure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koraa%2Fpdfbrochure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34977668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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":[],"created_at":"2024-12-03T16:58:43.746Z","updated_at":"2026-06-30T17:32:25.484Z","avatar_url":"https://github.com/koraa.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"pdfbrochure(1) -- A tool to create brochures\n============================================\n\n## SYNOPSIS\n\npdfbrochure [-e] [-t] [-n \u003c2..inf\u003e | -s \u003clist-of-pages\u003e] [-f \u003cfile\u003e]\npdfbrochure [-e] [-t] \u003c2..inf\u003e \u003cfile\u003e\npdfbrochure [-e] [-t] -f \u003cfile\u003e \u003c2..inf\u003e\npdfbrochure [-e] [-t] [-n \u003c2..inf\u003e | -s \u003clist-of-pages\u003e] \u003cfile\u003e\npdfbrochure -h\n\n## DESCRIPTION\n\n*pdfbrochure* creates a brochure from a sequential PDF.\nIt does this by taking a page selection for PDFjam and transforming it.\n\nThe purpose of pdfbrochure is mainly educational because pdfjam allready supports booklets  with --booklet=true. See also the *pdfbook* command.\n\nThe *pageselection* can either be specified as a normal PDFjam\npageselection (see PDFjam on that) or as a number,\nwhich would then be expanded to a pageselection from page 0 to that page.\nThe pageselection must at least contain two items;\nNo further checking is done, so invalid page literals or missing pages\nwon't be detected untill pdfjam is called.\nGenerally it is advisable to use the number of pages as a pageselection.\n\nThe following  *transformations* are then applied:\n\n1. The number of pages is normalized to a multiple of four.\n   This is done by adding the required amount of pages.\n2. If the *-e* option is given, pdfbrochure makes sure the last page is empty.\n3. Then pdfbrochure shifts the pages to create a brochure:\n\n     -     FRONT               BACK\n     ----------------------------------\n     last    first    | first+1  last-1\n     last-2  first+2  | first+3  last-3\n     last-4  first+4  | first+5  last-5\n     last-6  first+6  | first+7  last-7\n     last-8  first+8  | first+9  last-9\n     last-10 first+10 | first+11 last-11\n     last-12 first+12 | first+13 last-13\n     last-14 first+14 | first+15 last-15\n     last-16 first+16 | first+17 last-17\n       ...      ...   |   ...      ...\n\nIn the last step PDFjam is called and the new PDF is created.\nIf *-t* is given, no PDF will be created, instad the\nthe transformed selection is printed to *stdout*.\n\n## OPTIONS\n\n* -e \n  Make shure the last page is empty\n* -t\n  Don't invoke PDFjam instead just output the transformed selection\n* -h\n  Show this help\n* -f \u003cfile\u003e\n  The file to transform\n* -n \u003c2..inf\u003e\n  Selection - The number of pages\n* -s \u003cselection\u003e\n  Selection - Vector of pages\n\n## RETURN VALUES\n\nThis program terminates with 0 if successfull,\notherwise 1 is returned.\n\n## AUTHOR\n\n* Karolin Varner\n\n## LICENSE\n\npdfbrochure lis licensed under CC0 (which basically means Public Domain).\n\n## SEE ALSO\n\npdfjam, pdfbook, pdfnup\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoraa%2Fpdfbrochure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoraa%2Fpdfbrochure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoraa%2Fpdfbrochure/lists"}