{"id":38496911,"url":"https://github.com/dotgksh/php-mupdf","last_synced_at":"2026-01-17T05:54:24.606Z","repository":{"id":48008965,"uuid":"516441816","full_name":"dotgksh/php-mupdf","owner":"dotgksh","description":"Minimal PDF to image converter using MuPDF","archived":false,"fork":false,"pushed_at":"2024-11-14T16:14:13.000Z","size":29865,"stargazers_count":18,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-04T09:17:45.975Z","etag":null,"topics":["jpg","mupdf","mutool","pdf","pdf-converter","php"],"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/dotgksh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"karkowg"}},"created_at":"2022-07-21T16:17:21.000Z","updated_at":"2024-10-24T17:24:02.000Z","dependencies_parsed_at":"2024-12-04T09:27:53.563Z","dependency_job_id":null,"html_url":"https://github.com/dotgksh/php-mupdf","commit_stats":null,"previous_names":["karkowg/php-mupdf"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/dotgksh/php-mupdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotgksh%2Fphp-mupdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotgksh%2Fphp-mupdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotgksh%2Fphp-mupdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotgksh%2Fphp-mupdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotgksh","download_url":"https://codeload.github.com/dotgksh/php-mupdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotgksh%2Fphp-mupdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28501334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["jpg","mupdf","mutool","pdf","pdf-converter","php"],"created_at":"2026-01-17T05:54:24.036Z","updated_at":"2026-01-17T05:54:24.596Z","avatar_url":"https://github.com/dotgksh.png","language":"PHP","funding_links":["https://github.com/sponsors/karkowg"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://banners.beyondco.de/gksh%2Fphp-mupdf.png?theme=light\u0026packageManager=composer+require\u0026packageName=karkowg%2Fphp-mupdf\u0026pattern=wiggle\u0026style=style_1\u0026description=Minimal+PDF+to+image+converter+using+MuPDF\u0026md=1\u0026showWatermark=0\u0026fontSize=175px\u0026images=photograph\u0026widths=100\u0026heights=100\" alt=\"Package banner\"\u003e\n\u003c/p\u003e\n\n# php-mupdf\nMinimal PDF to image converter using [MuPDF](https://mupdf.com/docs/mutool.html). Heavily inspired by [spatie/image-to-pdf](https://github.com/spatie/pdf-to-image).\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/karkowg/php-mupdf.svg)](https://packagist.org/packages/karkowg/php-mupdf)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/karkowg/php-mupdf/tests.yml?branch=main)](https://github.com/dotgksh/php-mupdf/actions?query=workflow%3Atests+branch%3Amain)\n[![License](https://img.shields.io/packagist/l/karkowg/php-mupdf.svg)](https://github.com/dotgksh/php-mupdf/blob/main/LICENSE.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/karkowg/php-mupdf.svg)](https://packagist.org/packages/karkowg/php-mupdf)\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require karkowg/php-mupdf\n```\n\n## Usage\n\n### Convert all the pages to jpg\n\n``` php\n$pdf = new Karkow\\MuPdf\\Pdf('path/to/pdf/file');\n\n$pdf-\u003esaveAllPagesAsImages('./images/', 'page-');\n```\n\n### Convert a single page to png\n\n``` php\n$pdf = new Karkow\\MuPdf\\Pdf('path/to/pdf/file');\n\n$pdf\n    -\u003esetPage(2)\n    -\u003esetOutputFormat('png')\n    -\u003esaveImage('./images/page-2.png');\n```\n\nPlease refer to `tests/PdfTest.php` for other use cases.\n\n## [mutool](https://mupdf.com/releases/index.html)\n\nA compiled binary (v1.20.0) is available at `bin/mutool`. If for any reason you want/need to use your own installation, you can do so by passing its path as a 2nd argument to the constructor.\n\n``` php\n$pdf = new Karkow\\MuPdf\\Pdf('path/to/pdf/file', 'path/to/mutool');\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email karkowg@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Gustavo Karkow][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/karkowg/php-mupdf.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/karkowg/php-mupdf/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/karkowg/php-mupdf.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/karkowg/php-mupdf.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/karkowg/php-mupdf.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/karkowg/php-mupdf\n[link-travis]: https://travis-ci.org/karkowg/php-mupdf\n[link-scrutinizer]: https://scrutinizer-ci.com/g/karkowg/php-mupdf/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/karkowg/php-mupdf\n[link-downloads]: https://packagist.org/packages/karkowg/php-mupdf\n[link-author]: https://github.com/karkowg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotgksh%2Fphp-mupdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotgksh%2Fphp-mupdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotgksh%2Fphp-mupdf/lists"}