4 ms·
Once I was stuck in this Pdf viewer trap. I learned hard way that the browsers default pdf viewer operates in its own sandbox - to which I have no access. My cl
by mandeepj 4y ago
Once I was stuck in this Pdf viewer trap. I learned hard way that the browsers default pdf viewer operates in its own sandbox - to which I have no access. My client wanted to edit the data displayed in the pdf viewer and save the latest in a backend storage on Print. I thought I would find the control via document.getElementById (or something similar) grab the latest data, save it, and call it a day; but - nature has some other plans for me.
I ended up downloading pdf.js, which has about 30k lines of code. Imagine getting familiar with all of that, making changes, and getting the final output approved by various stakeholders - execs in the loop. Yeah, my reputation was on the line.