{"id":20144222,"url":"https://github.com/quansitech/convert-document","last_synced_at":"2026-05-29T13:31:53.949Z","repository":{"id":97655882,"uuid":"601544855","full_name":"quansitech/convert-document","owner":"quansitech","description":"convert multiple doc files to a pdf file","archived":false,"fork":false,"pushed_at":"2023-09-05T02:13:14.000Z","size":35358,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T10:50:11.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/quansitech.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":"2023-02-14T09:46:08.000Z","updated_at":"2023-02-14T11:32:30.000Z","dependencies_parsed_at":"2025-01-13T10:52:22.247Z","dependency_job_id":null,"html_url":"https://github.com/quansitech/convert-document","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fconvert-document","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fconvert-document/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fconvert-document/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fconvert-document/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quansitech","download_url":"https://codeload.github.com/quansitech/convert-document/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587914,"owners_count":19986627,"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":[],"created_at":"2024-11-13T22:09:16.533Z","updated_at":"2026-05-29T13:31:53.942Z","avatar_url":"https://github.com/quansitech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## convert-document\n\n```text\n文档格式转换服务\n\n支持将多个word文档转为一个pdf文档功能\n```\n\n#### 安装\n```php\ndocker-compose up -d convert-document\n```\n\n#### 用法\n\n服务默认采用3000端口\n\ndocker间的访问可以直接采用 http://convert-document:3000 地址访问\n\n```shell\ncurl -v -k -d \"paths=/var/www/xxx/app/1.docx\u0026out_put=/var/www/xxx/app/2.pdf\"  http://convert-document:3000/\n```\n\n请求参数说明\n\n| 字段     | 说明                                        | 格式     |\n|:-------|:------------------------------------------|:-------|\n| paths | word文档地址，多个使用英文逗号拼接（文件需要映射到容器里）          | string |\n| out_put | 保存的pdf文档地址                                | string |\n\n\n返回值说明\n\n| 字段     | 说明                                        | 格式     |\n|:-------|:------------------------------------------|:-------|\n| code | 状态码，0 成功 -1 失败          | int |\n| msg | 处理结果信息                                | string |\n\n```js\n// 成功\n{code:0,msg:\"success\"}\n\n// 失败\n{code:-1,msg:\"file not found\"}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquansitech%2Fconvert-document","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquansitech%2Fconvert-document","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquansitech%2Fconvert-document/lists"}