2.3.1 • Published 5 years ago

pee-dee-eff v2.3.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

pee-dee-eff

Make a pdf from a .zip'd static site.

Handy for printing generated documents etc.

Usage

var render = require('pee-dee-eff');

var zipStream = fs.createReadStream('my/cool/static/site.zip');

render(zipStream, {
        tempPath: '/temp/or/whatevs',
        waitTime: 500, // default,
        page: { // puppeteer page.pdf options
            format: 'A4'
            ...
        }
    },
    function(error, resultPath){
        // error or a path to the result .pdf file
    }
);

Custom executable path

render(zipStream, {
        executablePath: '/path/to/Chrome',
        ignoreHTTPSErrors: (default false),
        ...
    },
    function(error, resultPath){
        // error or a path to the result .pdf file
    }
);
2.3.1

5 years ago

2.3.0

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago