{"id":23929318,"url":"https://github.com/m-ah07/PDF-to-Images-Conversion-php","last_synced_at":"2025-09-11T13:32:21.088Z","repository":{"id":266947461,"uuid":"899843078","full_name":"marwan-ahmed-23/PDF-to-Images-Conversion-php","owner":"marwan-ahmed-23","description":"A lightweight PHP service for converting PDF files into images using pdftoppm. Supports PNG output and generates images for each page in the PDF.","archived":false,"fork":false,"pushed_at":"2024-12-27T05:40:06.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T06:24:32.440Z","etag":null,"topics":["image-extraction","image-processing","open-source","open-source-php","pdf-conversion","pdf-to-image","pdf-tools","php-library","php-scripts","php-tools"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/marwan-ahmed-23.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-12-07T06:46:24.000Z","updated_at":"2024-12-27T06:08:57.000Z","dependencies_parsed_at":"2024-12-27T06:22:04.957Z","dependency_job_id":"a54c590a-3ae2-49a9-9151-b88c30ab311a","html_url":"https://github.com/marwan-ahmed-23/PDF-to-Images-Conversion-php","commit_stats":null,"previous_names":["marwan-ahmed-23/pdf-to-images-conversion-php"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marwan-ahmed-23%2FPDF-to-Images-Conversion-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marwan-ahmed-23%2FPDF-to-Images-Conversion-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marwan-ahmed-23%2FPDF-to-Images-Conversion-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marwan-ahmed-23%2FPDF-to-Images-Conversion-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marwan-ahmed-23","download_url":"https://codeload.github.com/marwan-ahmed-23/PDF-to-Images-Conversion-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232651109,"owners_count":18555934,"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":["image-extraction","image-processing","open-source","open-source-php","pdf-conversion","pdf-to-image","pdf-tools","php-library","php-scripts","php-tools"],"created_at":"2025-01-05T23:16:17.561Z","updated_at":"2025-09-11T13:32:21.072Z","avatar_url":"https://github.com/marwan-ahmed-23.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF to Images Conversion (PHP)\n\nA lightweight PHP service for converting PDF files into images using `pdftoppm`. Supports PNG output and generates images for each page in the PDF.\n\n---\n\n## 🚀 Features\n- Converts PDF files into images (PNG format).\n- Outputs one image per page in the PDF.\n- Lightweight and easy to integrate.\n\n## ⚙️ Requirements\n- PHP 7.4 or higher.\n- `pdftoppm` installed on the server (part of `poppler-utils`).\n\n## 🔧 Installation\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/m-ah07/PDF-to-Images-Conversion-php.git\n    ```\n2. Install `pdftoppm` (if not already installed):\n    ```bash\n    sudo apt install poppler-utils\n    ```\n\n## Usage\n\n### Example\nUse the provided example script in the `examples/` directory:\n```bash\nrequire_once __DIR__ . '/../src/PdfToImages.php';\n\nuse PdfToImages\\PdfToImages;\n\n$pdfPath = __DIR__ . '/sample.pdf';\n$outputDir = __DIR__ . '/output';\n\n$converter = new PdfToImages($pdfPath, $outputDir);\n$images = $converter-\u003econvert();\n\nprint_r($images);\n```\n\nPlace a sample PDF in the `examples/` folder and run the script:\n```bash\nphp examples/example.php\n```\n\n## 📂 Directory Structure\n```plaintext\nPDF-to-Images-Conversion-php/\n├── examples/\n│   └── example.php\n├── src/\n│   └── PdfToImages.php\n├── LICENSE\n├── .gitignore\n└── README.md\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Feel free to submit a pull request or open an issue to report bugs or suggest features.\n\n## 🌟 Show Your Support\n\nIf you found this project helpful, please consider giving it a ⭐ on GitHub. Your support means the world to us!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-ah07%2FPDF-to-Images-Conversion-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-ah07%2FPDF-to-Images-Conversion-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-ah07%2FPDF-to-Images-Conversion-php/lists"}