{"id":18551981,"url":"https://github.com/baraja-core/php-pdf-to-image","last_synced_at":"2025-04-09T20:09:06.229Z","repository":{"id":44454058,"uuid":"221191628","full_name":"baraja-core/php-pdf-to-image","owner":"baraja-core","description":"Convert PDF to JPG, PNG or GIF in PHP.","archived":false,"fork":false,"pushed_at":"2024-11-27T09:56:41.000Z","size":34,"stargazers_count":21,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T20:09:01.554Z","etag":null,"topics":["gif","jpg","pdf","php"],"latest_commit_sha":null,"homepage":null,"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/baraja-core.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},"funding":{"github":"janbarasek","custom":["https://brj.app","https://baraja.cz","https://php.baraja.cz"]}},"created_at":"2019-11-12T10:31:20.000Z","updated_at":"2025-01-10T22:53:36.000Z","dependencies_parsed_at":"2025-01-02T03:12:09.304Z","dependency_job_id":"a3b18352-ea9f-4f01-ae80-7223595a4397","html_url":"https://github.com/baraja-core/php-pdf-to-image","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":"0.030303030303030276","last_synced_commit":"a5c8bd861092418c1581273776be2aa270ca0501"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fphp-pdf-to-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fphp-pdf-to-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fphp-pdf-to-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fphp-pdf-to-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baraja-core","download_url":"https://codeload.github.com/baraja-core/php-pdf-to-image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"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":["gif","jpg","pdf","php"],"created_at":"2024-11-06T21:11:24.854Z","updated_at":"2025-04-09T20:09:06.207Z","avatar_url":"https://github.com/baraja-core.png","language":"PHP","funding_links":["https://github.com/sponsors/janbarasek","https://brj.app","https://baraja.cz","https://php.baraja.cz"],"categories":[],"sub_categories":[],"readme":"PDF to image convertor\n======================\n\nConvert PDF to image and save to disk. Convert PDF to JPG, PNG or GIF in PHP.\n\n📦 Installation\n---------------\n\nIt's best to use [Composer](https://getcomposer.org) for installation, and you can also find the package on\n[Packagist](https://packagist.org/packages/baraja-core/php-pdf-to-image) and\n[GitHub](https://github.com/baraja-core/php-pdf-to-image).\n\nTo install, simply use the command:\n\n```shell\n$ composer require baraja-core/php-pdf-to-image\n```\n\nYou can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.\n\nHow to use\n----------\n\n```php\n$configuration = new Configuration(\n\tpdfPath: __DIR__ . '/example.pdf',\n\tsavePath: __DIR__ . '/example.jpg',\n\tformat: 'jpg'\n);\n\n// Render PDF to image and save to disk.\n\\Baraja\\PdfToImage\\Convertor::convert($configuration);\n```\n\nSupported configuration options\n-------------------------------\n\n| Name       | Type          | Default value |\n|------------|---------------|---------------|\n| `pdfPath`  | `string`      |               |\n| `savePath` | `string`      |               |\n| `format`   | `string`      | `'jpg'`       |\n| `trim`     | `bool`        | `false`       |\n| `cols`     | `int`, `null` | `null`        |\n| `rows`     | `int`, `null` | `null`        |\n| `bestfit`  | `bool`        | `false`       |\n\n📄 License\n-----------\n\n`baraja-core/php-pdf-to-image` is licensed under the MIT license. See the [LICENSE](https://github.com/baraja-core/template/blob/master/LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaraja-core%2Fphp-pdf-to-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaraja-core%2Fphp-pdf-to-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaraja-core%2Fphp-pdf-to-image/lists"}