how to just view a pdf file in the nodejs server code example Example: node js serve pdf file app.use('/pdf', express.static(__dirname + '/pathToPDF'));