a powerful html to PDF command tool use for production environment
npm install moyin-html2pdfA powerful html to PDF command tool use for production environment.
- Using Puppeteer and chrome-headless-shell to convert HTML files to PDF.
- Simple commands and clear documentation.
``bash`
npm install -g moyin-html2pdf
`bash`
yarn global add moyin-html2pdf
After installation, you can use it directly in your terminal:
`bash`
html2pdf --help
Or, if you have multiple commands configured:
`bash`
html2pdf [options]
h2p [options]
`bashConvert a html file to pdf file.
html2pdf --input sample.html --output sample.pdfConvert a markdown file to pdf file.
html2pdf --input sample.md --output sample.pdfConvert url to pdf file.
html2pdf --url https://www.google.com --output sample.pdf
``
If you encounter any problems, please report them via GitHub Issues.
This project is licensed under the MIT License - see the LICENSE file for details.
- This CLI tool is developed and used in production by Dochelp.cn, a help center building platform.
- Enjoy using html2pdf ! Feel free to contact us if you have any questions.