Node.js PDFBox Project to Generate Thumbnail Image From PDF Document Using Javascript Full Project For Beginners

 

 

npm i pdf2html

 

 

 

Usage

 

 

const pdf2html = require('pdf2html')
pdf2html.thumbnail('sample.pdf', (err, thumbnailPath) => {
    if (err) {
        console.error('Conversion error: ' + err)
    } else {
        console.log(thumbnailPath)
    }
})

 

 

Leave a Reply