doc: add printPdf description

This commit is contained in:
monoid 2022-04-29 23:59:17 +09:00
parent def17c7072
commit 67acd62c18
1 changed files with 14 additions and 1 deletions

View File

@ -28,3 +28,16 @@ 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)를 참고하세요.
## printPdf
url를 받아서 PDF로 출력합니다.
```
deno run ./printPdf.ts --outDir GooglePage.pdf --url http://www.google.com
```
으로 사용하면 됩니다.
다음과 같은 인자를 가집니다.
- url: pdf로 캡쳐할 url
- outDir: pdf를 저장할 위치
- chromeDir: chrome executable 위치. edge도 됨.