{"id":20108060,"url":"https://github.com/rverst/pdfmerge","last_synced_at":"2026-05-01T22:35:35.299Z","repository":{"id":93927859,"uuid":"250285073","full_name":"rverst/pdfmerge","owner":"rverst","description":"Monitors a directory and merge pdf files based on naming pattern, used for my scan-workflow","archived":false,"fork":false,"pushed_at":"2020-04-29T06:55:39.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T18:19:11.051Z","etag":null,"topics":["docker","docker-image","pdf","shellscript"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rverst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-26T14:43:51.000Z","updated_at":"2020-04-29T17:25:11.000Z","dependencies_parsed_at":"2023-04-01T06:18:52.022Z","dependency_job_id":null,"html_url":"https://github.com/rverst/pdfmerge","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rverst/pdfmerge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rverst%2Fpdfmerge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rverst%2Fpdfmerge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rverst%2Fpdfmerge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rverst%2Fpdfmerge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rverst","download_url":"https://codeload.github.com/rverst/pdfmerge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rverst%2Fpdfmerge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32515838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["docker","docker-image","pdf","shellscript"],"created_at":"2024-11-13T17:59:27.229Z","updated_at":"2026-05-01T22:35:35.279Z","avatar_url":"https://github.com/rverst.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdfmerge\n  ![automation](https://img.shields.io/docker/cloud/automated/rverst/pdfmerge) ![build status](https://img.shields.io/docker/cloud/build/rverst/pdfmerge)\n\nTL;DR  \nA docker-container that watches for incoming files (incrond) and merges them together\n (using [qpdf](http://qpdf.sourceforge.net)) if needed.  \n\nThe reason I created this project, is a scanner (HP OfficeJet) whose duplex unit sucks.\nIt can’t handle folded sheets well (paperjam in 8 out of 10 cases).\nSo I need to scan the odd and even pages separately and merge them together afterwards.  \nThe docker-container is running on my NAS (QNAP TS-251+) and watches for new files in a mounted volume,\nin which the scanner saves it files. The files are prefixed based on scan-profiles and merged based on\nthese prefixes.  \nFor convenience I reverse the order of the even pages and rotate them by 180 degree during the\nmerge process. Doing that I can simply take the scanned pages from the output\ntray and put them back to the input feeder without the need to rotate and reorder them.\n\n## Example usage:\n```console\n\u003e docker pull rverst/pdfmerge\n\u003e docker run -v /scan_folder:/input \\\n             -v /scan_folder:/output \\\n             rverst/pdfmerge:latest\n```\nNote that the script runs as UID 1000 and GID 1000 by default. These may be altered with the PUID and PGID environment variables.\n\n## Environment variables:\n\n * PUID - UID to use\n * GUID - GID to use\n * WAIT_TIMEOUT - timeout in sec. the script waits for a file to close. Should not be to short since some scanners\n create the file at the beginning of the scan.\n * ROTATE_ODD - rotate the odd pages\n * ROTATE_EVEN - rotate the even pages\n * REVERSE_EVEN - reverse the order of the even pages\n\n## Alternatives:\n* [docker-mergepdf](https://github.com/tuxflo/docker-mergepdf) - Inspiration for this little project.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frverst%2Fpdfmerge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frverst%2Fpdfmerge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frverst%2Fpdfmerge/lists"}