Skip to content

Latest commit

 

History

History
154 lines (127 loc) · 3.3 KB

README.md

File metadata and controls

154 lines (127 loc) · 3.3 KB

from-data-to-pdf

This library converts html files to PDF files or PDF buffer.

Is working for:

  • URL.
  • local html files.
  • html as string.
  • text.

Visit from-data-to-pdf.

Installation

$ npm i from-data-to-pdf

Usage

getPdf(targets, save, path?)

  • targets:
  • save:
    • type boolean.
    • true to save targets, false to get buffers.
  • path:
    • is optionnal.
    • type string.
const