Skip to content

peng49/convert-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert-server

PDF图片转换,支持html转pdf,html转图片,pdf转图片

构建镜像

拉取代码

git clone [email protected]:peng49/convert-server.git

进入目录

cd convert-server

构建镜像

docker build . -t peng49/convert-server:latest

启动容器

docker run -it -d -n convert-server -p 8080:8080 peng49/convert-server:latest

wkhtmltopdf安装包下载

中文乱码处理

API html转pdf

POST /api/convert
Content-Type: application/json
{
    "method":"html2pdf",
    "options":[
    
    ],
    "htmlContent": "
    
    "
}

html转图片

POST /api/convert
Content-Type: application/json
{
    "method":"html2image",
    "options":[
    
    ],
    "htmlContent": "
    
    "
}

pdf转图片

About

通过wkhtmltopdf 搭建的 html 转 pdf 服务

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published