From 8b719d3e12521b21fd16832f9e54c8fc44460299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=BB=84=E6=9E=97?= Date: Mon, 20 Oct 2025 15:22:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9e19605..9558fb6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ # html2pdf-server -利用playwright,将html导出为pdf \ No newline at end of file +利用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 . +``` \ No newline at end of file