2025-10-20 16:26:28 +08:00
2025-10-20 16:26:28 +08:00
2025-10-20 15:15:14 +08:00
2025-10-20 15:26:56 +08:00
2025-10-20 15:18:52 +08:00
2025-10-20 15:15:14 +08:00
2025-10-20 15:18:52 +08:00
2025-10-20 15:18:52 +08:00
2025-10-20 16:22:08 +08:00
2025-10-20 15:18:52 +08:00

html2pdf-server

利用playwright将html导出为pdf。访问地址http://localhost:3000

拉取代码后,在项目中建立一个fonts目录把你需要的字体放到里面只能是ttc或者ttf格式然后执行 build.sh 脚本进行构建。

也可以执行下面的命令来构建

docker buildx build --platform linux/amd64 -f Dockerfile -t yhl452493373/html2pdf-server .
docker buildx build --platform linux/arm64 -f Dockerfile -t yhl452493373/html2pdf-server .
Description
利用playwright,将html导出为pdf
Readme Apache-2.0 159 MiB
Languages
JavaScript 86.5%
Dockerfile 11.8%
Shell 1.7%