From 67acd62c1861ec28b1f133f30661b5e5716dd648 Mon Sep 17 00:00:00 2001 From: monoid Date: Fri, 29 Apr 2022 23:59:17 +0900 Subject: [PATCH] doc: add printPdf description --- tools/README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tools/README.md b/tools/README.md index 842bca9..e589812 100644 --- a/tools/README.md +++ b/tools/README.md @@ -27,4 +27,17 @@ deno run --allow-read --allow-write printDocument.ts --overall --path ./issues.j ## pdfbox-app-2.0.26 -다음 [링크](https://pdfbox.apache.org/2.0/commandline.html)를 참고하세요. \ No newline at end of file +다음 [링크](https://pdfbox.apache.org/2.0/commandline.html)를 참고하세요. + +## printPdf + +url를 받아서 PDF로 출력합니다. +``` +deno run ./printPdf.ts --outDir GooglePage.pdf --url http://www.google.com +``` +으로 사용하면 됩니다. + +다음과 같은 인자를 가집니다. +- url: pdf로 캡쳐할 url +- outDir: pdf를 저장할 위치 +- chromeDir: chrome executable 위치. edge도 됨. \ No newline at end of file