Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markruler/htmltopdf
HTML to PDF
https://github.com/markruler/htmltopdf
flask html-to-pdf pdf playwright
Last synced: about 2 months ago
JSON representation
HTML to PDF
- Host: GitHub
- URL: https://github.com/markruler/htmltopdf
- Owner: markruler
- Created: 2024-08-21T06:12:38.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T11:13:53.000Z (2 months ago)
- Last Synced: 2024-12-18T04:55:37.592Z (about 2 months ago)
- Topics: flask, html-to-pdf, pdf, playwright
- Language: Python
- Homepage: https://markruler.github.io/posts/pdf/html-to-pdf/
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTML to PDF
## 사용 모듈
- ~~[wkhtmltopdf](https://github.com/wkhtmltopdf/wkhtmltopdf)~~
- ~~[puppeteer](https://github.com/puppeteer/puppeteer)~~
- [microsoft/playwright](https://github.com/microsoft/playwright-python)## Local 실행
```shell
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
playwright install
``````shell
make run
```## Docker Image 빌드
```shell
make docker-build
```## Docker Container 실행
```shell
make docker-run
```## 참조
- [Playwright를 사용해서 HTML 페이지를 PDF로 만들기](https://markruler.github.io/posts/pdf/html-to-pdf/)