node-images-to-pdf
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

node-images-to-pdf

transform images to pdf file, based on puppeteer

  • local and remote images
  • cache chunk pdf
  • proxy support
  • docker env support
import ImagesToPDF from 'node-images-to-pdf'
// const ImagesToPDF = require('node-images-to-pdf').default

const instance = new ImagesToPDF({
  // outputPath: ''
})

await instance.toPDF({
  // name: 'images',
  pdf: {
    // width: 520,
    // height: 1000
  },
  images: [
    // local images in outputPath
    // or remote image url
    'file1.jpg',
    'file2.jpg'
  ]
})

Package Sidebar

Install

npm i node-images-to-pdf

Weekly Downloads

7

Version

0.5.1

License

MIT

Unpacked Size

16.4 kB

Total Files

14

Last publish

Collaborators

  • zenxds