{"id":19535579,"url":"https://github.com/miyako/pdfcpu","last_synced_at":"2026-03-19T10:20:58.017Z","repository":{"id":230801602,"uuid":"780215861","full_name":"miyako/pdfcpu","owner":"miyako","description":"Classes to use the golang utility pdfcpu","archived":false,"fork":false,"pushed_at":"2024-12-05T04:22:23.000Z","size":21286,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T17:55:16.944Z","etag":null,"topics":["4d-class","4d-component","pdf"],"latest_commit_sha":null,"homepage":"https://miyako.github.io/pdfcpu/","language":"4D","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/miyako.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-04-01T01:59:48.000Z","updated_at":"2024-12-05T04:21:17.000Z","dependencies_parsed_at":"2024-04-01T03:26:01.542Z","dependency_job_id":"8d560d67-6861-49ba-b42e-668dc25a5843","html_url":"https://github.com/miyako/pdfcpu","commit_stats":null,"previous_names":["miyako/4d-class-pdfcpu"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2Fpdfcpu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2Fpdfcpu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2Fpdfcpu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2Fpdfcpu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miyako","download_url":"https://codeload.github.com/miyako/pdfcpu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240788773,"owners_count":19857699,"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":["4d-class","4d-component","pdf"],"created_at":"2024-11-11T02:19:10.363Z","updated_at":"2026-03-19T10:20:58.008Z","avatar_url":"https://github.com/miyako.png","language":"4D","funding_links":[],"categories":[],"sub_categories":[],"readme":"![version](https://img.shields.io/badge/version-20%2B-E23089)\n![platform](https://img.shields.io/static/v1?label=platform\u0026message=mac-intel%20|%20mac-arm%20|%20win-64\u0026color=blue)\n[![license](https://img.shields.io/github/license/miyako/4d-class-pdfcpu)](LICENSE)\n![downloads](https://img.shields.io/github/downloads/miyako/4d-class-pdfcpu/total)\n\nClasses to use the golang utility [pdfcpu](https://pdfcpu.io).\n\n## dependencies.json\n\n```json\n{\n\t\"dependencies\": {\n\t\t\"pdfcpu\": {\n\t\t\t\"github\": \"miyako/pdfcpu\",\n\t\t\t\"version\": \"latest\"\n\t\t}\n\t}\n}\n```\n\n## Examples\n\n```4d\n$PROJECT:=File(Structure file; fk platform path).name\n\n$src:=Folder(Folder(\"/PROJECT/\").platformPath; fk platform path).parent.folder(\"Samples/windows\")\n$dst:=Folder(fk desktop folder)\n\nvar $pdfcpu : cs.pdfcpu.pdfcpu\n$pdfcpu:=cs.pdfcpu.pdfcpu.new(cs.pdfcpu._pdfcpu_Controller)\n\n$inFile:=File(\"/PROJECT/4D Summit 2011 Pre-Class.pdf\")\n$outDir:=Folder(fk desktop folder)\n\n//before and after page 2\n$ex1:={inFile: $inFile; outDir: $outDir.folder(\"page\"); mode: \"page\"; span: 2}\n\n//3 pages each\n$ex2:={inFile: $inFile; outDir: $outDir.folder(\"span\"); span: 3}\n\n//before pages 2,4,10\n$ex3:={inFile: $inFile; outDir: $outDir.folder(\"pages\"); mode: \"page\"; span: [2; 4; 10]}\n\n$pdfcpu.split([$ex1; $ex2; $ex3])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2Fpdfcpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiyako%2Fpdfcpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2Fpdfcpu/lists"}