{"id":25531919,"url":"https://github.com/m-ah07/pdf-to-images-conversion-php","last_synced_at":"2026-02-13T13:04:13.409Z","repository":{"id":266947461,"uuid":"899843078","full_name":"m-ah07/PDF-to-Images-Conversion-php","owner":"m-ah07","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":"2025-02-16T07:51:07.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T11:36:14.315Z","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/m-ah07.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,"zenodo":null}},"created_at":"2024-12-07T06:46:24.000Z","updated_at":"2025-02-16T07:51:11.000Z","dependencies_parsed_at":"2024-12-27T06:22:04.957Z","dependency_job_id":"a54c590a-3ae2-49a9-9151-b88c30ab311a","html_url":"https://github.com/m-ah07/PDF-to-Images-Conversion-php","commit_stats":null,"previous_names":["marwan-ahmed-23/pdf-to-images-conversion-php","m-ah07/pdf-to-images-conversion-php"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m-ah07/PDF-to-Images-Conversion-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2FPDF-to-Images-Conversion-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2FPDF-to-Images-Conversion-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2FPDF-to-Images-Conversion-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2FPDF-to-Images-Conversion-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-ah07","download_url":"https://codeload.github.com/m-ah07/PDF-to-Images-Conversion-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2FPDF-to-Images-Conversion-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29407094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["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-02-20T01:42:18.330Z","updated_at":"2026-02-13T13:04:13.383Z","avatar_url":"https://github.com/m-ah07.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"}