gochro - HTML转PDF File


https://hub.docker.com/r/firefart/gochro


docker run -d --name html2pdf --hostname html2pdf  -p 87:8000 --restart=always  --init  --privileged=true --user=root   -e TZ='Asia/Shanghai'   -e LANG='zh_CN.UTF-8'  --ulimit nofile=262144:262144  -v /data/file:/data/file    firefart/gochro   -host 0.0.0.0:8000


docker exec -it html2pdf  /bin/sh


# 截图

-This URL takes a Screenshot of https://qq.com with a resolution of 1024x768 and returns an image.

http://g.htmltoo.com:87/screenshot?url=https://qq.com&w=1024&h=768


# PDF

Send a POST request with the HTML you want to convert in the Post body to the following url.

http://g.htmltoo.com:87/html2pdf?w=1024&h=768



签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回