{"id":49880058,"url":"https://github.com/pardnio/pdf2image","last_synced_at":"2026-05-15T13:40:41.070Z","repository":{"id":241834666,"uuid":"807733338","full_name":"pardnio/pdf2image","owner":"pardnio","description":"PDF-to-image converter","archived":false,"fork":false,"pushed_at":"2025-01-26T16:35:47.000Z","size":56,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-24T17:35:29.182Z","etag":null,"topics":["frontend","javascript","pardnchiu","pdf-to-image","pdf-to-jpg","pdf-to-png","pdf-to-webp","vanilla-javascript"],"latest_commit_sha":null,"homepage":"https://pdf2image.pardn.io","language":"JavaScript","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/pardnio.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-05-29T17:05:05.000Z","updated_at":"2026-04-05T17:50:30.000Z","dependencies_parsed_at":"2024-05-30T08:11:46.446Z","dependency_job_id":"06a86fa1-aad9-4c43-b114-76e0f60d2717","html_url":"https://github.com/pardnio/pdf2image","commit_stats":null,"previous_names":["pardnchiu/pdfconverter","pardnchiu/pdutils","pardnchiu/pdf2image","pardnltd/pdf2image","pardnio/pdf2image"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pardnio/pdf2image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pardnio%2Fpdf2image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pardnio%2Fpdf2image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pardnio%2Fpdf2image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pardnio%2Fpdf2image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pardnio","download_url":"https://codeload.github.com/pardnio/pdf2image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pardnio%2Fpdf2image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"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":["frontend","javascript","pardnchiu","pdf-to-image","pdf-to-jpg","pdf-to-png","pdf-to-webp","vanilla-javascript"],"created_at":"2026-05-15T13:40:40.414Z","updated_at":"2026-05-15T13:40:41.061Z","avatar_url":"https://github.com/pardnio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdf2image\n\n![tag](https://img.shields.io/badge/tag-JavaScript%20Library-bb4444) \n![size](https://img.shields.io/github/size/pardnchiu/pdf2image/dist%2Fpdf2image.js)\u003cbr\u003e\n[![npm](https://img.shields.io/npm/v/@pardnchiu/pdf2image)](https://www.npmjs.com/package/@pardnchiu/pdf2image)\n[![download](https://img.shields.io/npm/dm/@pardnchiu/pdf2image)](https://www.npmjs.com/package/@pardnchiu/pdf2image)\n[![jsdeliver](https://img.shields.io/jsdelivr/npm/hm/@pardnchiu/pdf2image)](https://www.jsdelivr.com/package/npm/@pardnchiu/pdf2image)\u003cbr\u003e\n[![](https://img.shields.io/badge/查閱-中文版本-ffffff)](https://github.com/pardnchiu/pdf2image/blob/main/README.zh.md)\n\n## Features\n\n### PDF to Images\n- Seamlessly integrates with [pdf.js](https://github.com/mozilla/pdf.js) to efficiently parse PDFs and convert them into images.\n- Supports multiple image formats: `jpg`, `png`, `webp` for versatile usage.\n\n### Compressed Downloads\n- Leverages [jszip.js](https://github.com/Stuk/jszip) to bundle generated images into a ZIP file for one-click download.\n- Automatically names files and ZIP archives for better organization of multipage content.\n\n### High Efficiency and Stability\n- Designed with asynchronous processing to ensure a smooth user experience.\n- Comprehensive error handling with detailed error messages for easier debugging.\n\n## Installation\n\n### Install via npm\n```bash\nnpm i @pardnchiu/pdf2image\n```\n\n### Include via CDN\n\n#### UMD Version\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@pardnchiu/pdf2image@[VERSION]/dist/pdf2image.js\"\u003e\u003c/script\u003e\n```\n\n#### ES Module Version\n```javascript\nimport { pdf2image } from \"https://cdn.jsdelivr.net/npm/@pardnchiu/pdf2image@[VERSION]/dist/pdf2image.esm.js\";\n```\n\n## How to use\n\n### Initialize `pdf2image`\n```Javascript\nconst converter = new pdf2image({\n    filename: \"image-yyyy-MM-DD_hh:mm\", // Specify output filename, supports date format templates [yyyy|MM|DD|hh|mm]\n    file: [file],                       // Input PDF file from file input or other sources\n    scale: 1.5,                         // Scale factor, default is 1.5\n    type: \"png\"                         // Output image format [jpg|png|webp]\n});\n\n// Convert PDF to images\nconverter.convert().then(images =\u003e {\n    console.log(\"Successfully converted images:\", images);\n});\n\n// Download compressed ZIP file\nconverter.download().then(() =\u003e {\n    console.log(\"Images have been packed and downloaded!\");\n});\n```\n\n## License\n\nThis source code project is licensed under the [MIT](https://github.com/pardnchiu/pdf2image/blob/main/LICENSE) License.\n\n## Creator\n\n\u003cimg src=\"https://avatars.githubusercontent.com/u/25631760\" align=\"left\" width=\"96\" height=\"96\" style=\"margin-right: 0.5rem;\"\u003e\n\n\u003ch4 style=\"padding-top: 0\"\u003e邱敬幃 Pardn Chiu\u003c/h4\u003e\n\n\u003ca href=\"mailto:dev@pardn.io\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://pardn.io/image/email.svg\" width=\"48\" height=\"48\"\u003e\n\u003c/a\u003e \u003ca href=\"https://linkedin.com/in/pardnchiu\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://pardn.io/image/linkedin.svg\" width=\"48\" height=\"48\"\u003e\n\u003c/a\u003e\n\n***\n\n©️ 2024 [邱敬幃 Pardn Chiu](https://pardn.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpardnio%2Fpdf2image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpardnio%2Fpdf2image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpardnio%2Fpdf2image/lists"}