{"id":19243659,"url":"https://github.com/musatahawar/pdf-merger","last_synced_at":"2026-06-23T09:31:46.224Z","repository":{"id":205040895,"uuid":"713266742","full_name":"MusaTahawar/PDF-Merger","owner":"MusaTahawar","description":"This is a Python script that uses the PyPDF2 library to merge multiple PDF files into a single PDF document. The script allows you to specify the order in which the PDFs are merged and provides robust error handling.","archived":false,"fork":false,"pushed_at":"2023-11-02T07:13:17.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T15:12:56.481Z","etag":null,"topics":["pytho","python-3","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/MusaTahawar.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}},"created_at":"2023-11-02T07:08:30.000Z","updated_at":"2023-11-02T14:52:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"eabebe77-e77e-4197-abaa-2035886d6789","html_url":"https://github.com/MusaTahawar/PDF-Merger","commit_stats":null,"previous_names":["musatahawar/pdf-merger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MusaTahawar/PDF-Merger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MusaTahawar%2FPDF-Merger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MusaTahawar%2FPDF-Merger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MusaTahawar%2FPDF-Merger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MusaTahawar%2FPDF-Merger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MusaTahawar","download_url":"https://codeload.github.com/MusaTahawar/PDF-Merger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MusaTahawar%2FPDF-Merger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34684673,"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-23T02:00:07.161Z","response_time":65,"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":["pytho","python-3","python3"],"created_at":"2024-11-09T17:19:03.185Z","updated_at":"2026-06-23T09:31:46.202Z","avatar_url":"https://github.com/MusaTahawar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advanced PDF Merging Script\n\nThis is a Python script that uses the `PyPDF2` library to merge multiple PDF files into a single PDF document. The script allows you to specify the order in which the PDFs are merged and provides robust error handling.\n\n## Getting Started\n\nTo run this script, you need to have Python and the `PyPDF2` library installed on your system.\n\n1. **Clone the repository** to your local machine:\n\n    ```shell\n    git clone https://github.com/yourusername/advanced-pdf-merger.git\n    cd advanced-pdf-merger\n    ```\n\n2. **Run the script**:\n\n    ```shell\n    python merge_pdfs.py\n    ```\n\nThe script will merge the PDF files as specified and save the merged PDF as \"merged.pdf\" by default.\n\n## Features\n\n- **PDF Merging:** Merge multiple PDF files into a single PDF document.\n- **Custom Merge Order:** Specify the order in which the PDFs are merged by providing a custom merge order.\n- **Robust Error Handling:** The script includes error handling to gracefully handle any issues that may arise during the merging process.\n\n## Usage\n\n### Basic Usage\n\nTo merge PDFs in the order they appear in the `pdf_files` list:\n\n```python\n# List of PDF files to merge\npdf_files = [\"file1.pdf\", \"file2.pdf\", \"file3.pdf\"]\n\n# Output filename for the merged PDF\noutput_pdf = \"merged.pdf\"\n\nmerge_pdfs(pdf_files, output_pdf)\n\n\nCustom Merge Order\nTo specify a custom order for merging the PDFs, provide a list of indices in the merge_order parameter:\n\npython\nCopy code\n# Specify the order of merging (e.g., merge in the order [1, 2, 0])\nmerge_order = [1, 2, 0]\n\nmerge_pdfs(pdf_files, output_pdf, merge_order)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusatahawar%2Fpdf-merger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmusatahawar%2Fpdf-merger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusatahawar%2Fpdf-merger/lists"}