DEV Community


A simplistic PDF reader

Dimitrios Desyllas
Greedings I am Dimitrios Desyllas aka pc_magas. I am a php software engineer in e-table. I am interested in electron, C++, privacy enhancing terchnologies and cryptography
・1 min read

For my project's needs I needed a simplistic pdf reader that works on mobile browsers.

Hence I did that:

I used pdf.js and I render the whole pdf into a dynamically generated specified div. Then once I read it I render each page on a dedicated canvas element.

Once pdf is rendered then I hide a spinner and I show the pdf.

Discussion (0)

Forem Open with the Forem app