choose pdf from files and display node js code example Example: node js serve pdf file app.use('/pdf', express.static(__dirname + '/pathToPDF'));