Files
html2pdf-server/README.md
2025-10-20 16:22:08 +08:00

13 lines
513 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# html2pdf-server
利用playwright将html导出为pdf。访问地址`http://localhost:3000`
拉取代码后,在项目中建立一个`fonts`目录把你需要的字体放到里面只能是ttc或者ttf格式然后执行 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 .
```