更新 README.md

This commit is contained in:
2025-10-20 15:22:15 +08:00
parent 68e286e602
commit 8b719d3e12

View File

@@ -1,3 +1,13 @@
# html2pdf-server
利用playwright将html导出为pdf
利用playwright将html导出为pdf。访问地址:`http://localhost:3000`
把你需要的字体放到 fonts 目录下,然后执行 build.sh 脚本进行构建。
也可以执行下面的命令来构建
```sh
docker buildx build --platform linux/amd64 -f Dockerfile -t yhl452493373/html2pdf-server .
```
```sh
docker buildx build --platform linux/arm64 -f Dockerfile -t yhl452493373/html2pdf-server .
```