{"id":16098602,"url":"https://github.com/funnyzak/fpdf2pic","last_synced_at":"2025-09-20T22:09:26.463Z","repository":{"id":56855779,"uuid":"526154962","full_name":"funnyzak/fpdf2pic","owner":"funnyzak","description":"A command line tool for converting PDF to images.","archived":false,"fork":false,"pushed_at":"2023-09-20T18:32:16.000Z","size":1216,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-09T17:47:50.080Z","etag":null,"topics":["jpg","nodejs","npm","pdf","pdf-convert","pdf-parse","pdf-to-pic","pdf2pic"],"latest_commit_sha":null,"homepage":"https://fpdf2pic.yycc.dev","language":"TypeScript","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/funnyzak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://github.com/funnyzak/funnyzak/blob/storage/assets/coffee.png"]}},"created_at":"2022-08-18T10:00:21.000Z","updated_at":"2023-03-08T13:42:04.000Z","dependencies_parsed_at":"2024-10-03T10:02:25.547Z","dependency_job_id":"4977556f-ee0f-4652-a90a-b89f242a4545","html_url":"https://github.com/funnyzak/fpdf2pic","commit_stats":{"total_commits":147,"total_committers":4,"mean_commits":36.75,"dds":"0.30612244897959184","last_synced_commit":"798789576880318aa27722ec8d14193f4cdb603b"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/funnyzak/fpdf2pic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyzak%2Ffpdf2pic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyzak%2Ffpdf2pic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyzak%2Ffpdf2pic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyzak%2Ffpdf2pic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funnyzak","download_url":"https://codeload.github.com/funnyzak/fpdf2pic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyzak%2Ffpdf2pic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276165275,"owners_count":25596199,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"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":["jpg","nodejs","npm","pdf","pdf-convert","pdf-parse","pdf-to-pic","pdf2pic"],"created_at":"2024-10-09T18:24:07.694Z","updated_at":"2025-09-20T22:09:26.417Z","avatar_url":"https://github.com/funnyzak.png","language":"TypeScript","funding_links":["https://github.com/funnyzak/funnyzak/blob/storage/assets/coffee.png"],"categories":[],"sub_categories":[],"readme":"# fpdf2pic\n\nA command line tool for converting PDF to images.\n\n[![Build Status][build-status-image]][build-status]\n[![license][license-image]][repository-url]\n[![node](https://img.shields.io/node/v/fpdf2pic.svg)](https://nodejs.org/)\n[![NPM version][npm-image]][npm-url]\n[![Release Date][rle-image]][rle-url]\n[![npm download][download-image]][download-url]\n\u003c!--[![GitHub repo size][repo-size-image]][repository-url]--\u003e\n\u003c!-- [![Sourcegraph][sg-image]][sg-url] --\u003e\n\n[repo-size-image]: https://img.shields.io/github/repo-size/funnyzak/fpdf2pic\n[build-status-image]:  https://github.com/funnyzak/fpdf2pic/actions/workflows/ci.yml/badge.svg\n[build-status]: https://github.com/funnyzak/fpdf2pic/actions\n[license-image]: https://img.shields.io/github/license/funnyzak/fpdf2pic.svg?style=flat-square\n[repository-url]: https://github.com/funnyzak/fpdf2pic\n[npm-image]: https://img.shields.io/npm/v/fpdf2pic.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/fpdf2pic\n[download-image]: https://img.shields.io/npm/dm/fpdf2pic.svg?style=flat-square\n[download-url]: https://npmjs.org/package/fpdf2pic\n[sg-image]: https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?style=flat-square\n[sg-url]: https://sourcegraph.com/github.com/funnyzak/fpdf2pic\n[rle-image]: https://img.shields.io/github/release-date/funnyzak/fpdf2pic.svg\n[rle-url]: https://github.com/funnyzak/fpdf2pic/releases/latest\n\n## Prerequisite\n\n* [node \u003e= 14.x](http://nodejs.cn/download/)\n* [graphicsmagick](http://www.graphicsmagick.org/README.html#installation)\n* [ghostscript](https://www.ghostscript.com/)\n\n## Installation\n\n```sh\nnpm i fpdf2pic -g\n```\n\n## Usage\n\n```sh\n# Show help\npdf2pic -h\n\n# Convert a single PDF to the output directory\npdf2pic -i ./test.pdf -o ./tmp/output_dir\n\n# All PDF files to the output directory in the conversion directory\npdf2pic -i ./pdf_file_dir -o ./tmp/output_dir\n```\nAfter installing it, run `pdf2pic --help` without arguments to see list of options:\n\n```console\nfpdf2pic - A command line tool for converting PDF to images.\n\nUsage:\n  pdf2pic [options]\n  pdf2pic --help\n  pdf2pic --version\n  pdf2pic -i pdf_path [-o output_path]\n\nOptions:\n  -h, --help                          Show message.\n  -d, --debug                         Show debugging information.\n  -v, --version                       Show version.\n  -i, --input-path                    To convert the PDF file path, you can be a single file or folder path.\n  -o, --output-dir                    the directory to output the images, The default will convert all pages, eg: -o ./pdf_images.\n  -P, --page-range                    The page range to convert,  eg: -P 1,3、 -P 1.\n  -W, --width                         The max width of the image to be converted, eg: -W 1024.\n  -H, --height                        The max height of the image to be converted, eg: -H 768.\n  -F, --format                        The format of the image to be converted, eg: -F png.\n  -Q, --quality                       The quality of the image to be converted, eg: -Q 80.\n  -D, --density                       The density of the image to be converted, eg: -D 300.\n  -C, --compression                   The compression method of the image to be converted, eg: -C jpeg.\n\n  By default, fpdf2pic The images will be converted to the folder where the PDF is located when the output path is not specified.\n```\n\n## Preview\n\n![show help](https://raw.githubusercontent.com/funnyzak/fpdf2pic/main/public/preview2.png)\n![converting](https://raw.githubusercontent.com/funnyzak/fpdf2pic/main/public/preview.png)\n\n## FAQ\n\n### install graphicsmagick\n\nSee [installation](http://www.graphicsmagick.org/README.html#installation).\n\n In Mac OS X, you can simply use Homebrew and do: `brew install graphicsmagick`\n\n## Contribution\n\nIf you have any questions or suggestions, please feel free to open an issue or pull request.\n\n\u003ca href=\"https://github.com/funnyzak/fpdf2pic/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=funnyzak/fpdf2pic\" /\u003e\n\u003c/a\u003e\n\n## License\n\nMIT License © 2022 [funnyzak](https://github.com/funnyzak)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnyzak%2Ffpdf2pic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunnyzak%2Ffpdf2pic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnyzak%2Ffpdf2pic/lists"}