@fabrix/spool-pdf
    TypeScript icon, indicating that this package has built-in type declarations

    1.5.0 • Public • Published

    spool-pdf

    Gitter NPM version Build Status Test Coverage Dependency Status Follow @FabrixApp on Twitter

    📦 Pdf Spool

    Install

    $ npm install --save @fabrix/spool-pdf

    Configure

    // config/main.ts
    import { PdfSpool } from '@fabrix/spool-pdf'
    export const main = {
      spools: [
        // ... other spools
        PdfSpool
      ]
    }

    Configuration

    // config/pdf.ts
    export const pdf = {
      allowLocalFilesAccess: true,
        printDelay: 100,
        paperSize: {
          format: 'Letter',
          height: '11in',
          width: '8.5in'
        },
        format: {
          quality: 100
        }
    }
    

    For more information about store (type and configuration) please see the pdf documentation.

    Usage

      this.app.pdf.htmlToPDF('<h1>Hello World</h1>')
      .then(pdf => {
        // Do something with your PDF
      })

    Install

    npm i @fabrix/spool-pdf

    Homepage

    fabrix.app

    DownloadsWeekly Downloads

    2

    Version

    1.5.0

    License

    MIT

    Unpacked Size

    13.8 kB

    Total Files

    27

    Last publish

    Collaborators

    • scottbwyatt