how to load the data in pdf using node js code example
Example 1: node js serve pdf file
app.use('/pdf', express.static(__dirname + '/pathToPDF'));
Example 2: node js serve pdf file
res.setHeader('Content-Type', 'application/pdf')
app.use('/pdf', express.static(__dirname + '/pathToPDF'));
res.setHeader('Content-Type', 'application/pdf')