Skip to content

sparebytes/html-pdf-press

Repository files navigation

HTML PDF Press: Comprehensive HTML => PDF

html-pdf-press logo

✨ Features

  • Generates PDFs and screenshots
  • Docker ready
  • Secure
    • JWT authentication enabled by default
    • Cookies are automatically reset
  • Headers / Footers
    • Dynamic placeholders for page number and total pages
    • Extract elements from HTML into header/footer
    • Applies CSS from HTML in header/footer
    • Supports images in header/footer
    • Automatically determines size of header/footer
    • Automatically applies margin to header/footer
    • Different header for first page
  • Configurable
    • By environment variables
    • By json files
    • By HTTP query string or json body
    • Page size and margin presets
    • Load a url or supply HTML directly
    • Use Chrome or Chromium

💿 Quick Start Guide

Global Installation (Optional)

npm install -g @html-pdf-press/server
htmlpdfpress
# Goto http://localhost:7355?url=https://google.com

Setup Dev Environment

git clone https://github.com/sparebytes/html-pdf-press.git
cd html-pdf-press
yarn install
yarn run dev
# Goto http://localhost:7355?url=https://google.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published