{"id":13792273,"url":"https://github.com/devsapp/start-pdf2img","last_synced_at":"2026-02-03T18:37:34.904Z","repository":{"id":43302776,"uuid":"392481987","full_name":"devsapp/start-pdf2img","owner":"devsapp","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-18T07:55:10.000Z","size":5073,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-09T18:41:27.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devsapp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-08-03T23:14:46.000Z","updated_at":"2024-11-26T01:57:18.000Z","dependencies_parsed_at":"2023-11-15T04:27:29.689Z","dependency_job_id":"479e5fe1-d525-4380-a914-9c6887aac8a7","html_url":"https://github.com/devsapp/start-pdf2img","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/devsapp/start-pdf2img","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsapp%2Fstart-pdf2img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsapp%2Fstart-pdf2img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsapp%2Fstart-pdf2img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsapp%2Fstart-pdf2img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devsapp","download_url":"https://codeload.github.com/devsapp/start-pdf2img/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsapp%2Fstart-pdf2img/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29052639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: 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":[],"created_at":"2024-08-03T22:01:10.469Z","updated_at":"2026-02-03T18:37:34.883Z","avatar_url":"https://github.com/devsapp.png","language":"Python","readme":"# start-pdf2img 帮助文档\n\n\u003cp align=\"center\" class=\"flex justify-center\"\u003e\n    \u003ca href=\"https://www.serverless-devs.com\" class=\"ml-1\"\u003e\n    \u003cimg src=\"http://editor.devsapp.cn/icon?package=start-pdf2img\u0026type=packageType\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://www.devsapp.cn/details.html?name=start-pdf2img\" class=\"ml-1\"\u003e\n    \u003cimg src=\"http://editor.devsapp.cn/icon?package=start-pdf2img\u0026type=packageVersion\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://www.devsapp.cn/details.html?name=start-pdf2img\" class=\"ml-1\"\u003e\n    \u003cimg src=\"http://editor.devsapp.cn/icon?package=start-pdf2img\u0026type=packageDownload\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdescription\u003e\n\n\u003e ***将PDF转换为JPG图片***\n\n\u003c/description\u003e\n\n\u003ctable\u003e\n\n\n\n\u003c/table\u003e\n\n\u003ccodepre id=\"codepre\"\u003e\n\n\u003c/codepre\u003e\n\n\u003cdeploy\u003e\n\n## 部署 \u0026 体验\n\n\u003cappcenter\u003e\n\n- :fire: 通过 [Serverless 应用中心](https://fcnext.console.aliyun.com/applications/create?template=start-pdf2img) ，\n[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://fcnext.console.aliyun.com/applications/create?template=start-pdf2img)  该应用。 \n\n\u003c/appcenter\u003e\n\n- 通过 [Serverless Devs Cli](https://www.serverless-devs.com/serverless-devs/install) 进行部署：\n    - [安装 Serverless Devs Cli 开发者工具](https://www.serverless-devs.com/serverless-devs/install) ，并进行[授权信息配置](https://www.serverless-devs.com/fc/config) ；\n    - 初始化项目：`s init start-pdf2img -d start-pdf2img`   \n    - 进入项目，并进行项目部署：`cd start-pdf2img \u0026\u0026 s deploy -y`\n\n\u003c/deploy\u003e\n\n\u003cappdetail id=\"flushContent\"\u003e\n\n# 应用详情\n\n## 项目使用注意事项\n\n项目Yaml中，声明了`actions`， 其对应的命令作用是 deploy 之前自动安装第三方依赖库， 同时 s deploy 部署的时候， 会自动增加相关的环境变量， 让您函数执行的时候能自动找到相关的依赖库。\n\n## 应用详情\n\n本应用是将 PDF 转 JPG 图片示例部署到阿里云函数计算（FC)。\n\n通过 Serverless Devs 开发者工具，您只需要几步，就可以体验 Serverless 架构，带来的降本提效的技术红利。\n\n部署完成之后，您可以使用 s 工具或者 SDK 调用函数，函数执行成功后， 就可以在 OSS 指定目标目录中得到一个 zip 包， zip 包里面是 pdf 每页截图的 jpg 文件\n\n```bash\n$ s invoke -e '{\"bucket\": \"my-bucket\", \"region\": \"cn-hangzhou\", \"src_object\": \"test.pdf\",  \"dst_object\": \"test.zip\", \"dpi\": 200}'\n```\n\n其中：\n\n- **bucket**: 必需，pdf 文件所在的 bucket 名字\n\n- **region**: 可选，pdf 文件所在的 bucket 的 region, 不填默认使用函数所在的 region\n\n- **src_object**: 必需，pdf 文件所在的 bucket 中的 object key\n\n- **src_object**: 必需，必须是 .zip 结尾,  pdf 文件转成图片后的 zip 包所在的 object key\n\n- **dpi**: 可选，默认值为200,  pdf 转的 image 的 DPI（图像每英寸长度内的像素点数）\n\n\u003c/appdetail\u003e\n\n\u003cdevgroup\u003e\n\n## 开发者社区\n\n您如果有关于错误的反馈或者未来的期待，您可以在 [Serverless Devs repo Issues](https://github.com/serverless-devs/serverless-devs/issues) 中进行反馈和交流。如果您想要加入我们的讨论组或者了解 FC 组件的最新动态，您可以通过以下渠道进行：\n\n\u003cp align=\"center\"\u003e\n\n| \u003cimg src=\"https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407298906_20211028074819117230.png\" width=\"130px\" \u003e | \u003cimg src=\"https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407044136_20211028074404326599.png\" width=\"130px\" \u003e | \u003cimg src=\"https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407252200_20211028074732517533.png\" width=\"130px\" \u003e |\n|--- | --- | --- |\n| \u003ccenter\u003e微信公众号：`serverless`\u003c/center\u003e | \u003ccenter\u003e微信小助手：`xiaojiangwh`\u003c/center\u003e | \u003ccenter\u003e钉钉交流群：`33947367`\u003c/center\u003e | \n\n\u003c/p\u003e\n\n\u003c/devgroup\u003e","funding_links":[],"categories":["场景合集"],"sub_categories":["其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsapp%2Fstart-pdf2img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevsapp%2Fstart-pdf2img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsapp%2Fstart-pdf2img/lists"}