I have an Electron.js app project which already contains pdf files locally.
I installed pdf.js and I already test the pdfjs/web/viewer.html to render a pdf test file