legalthings / angular-pdfjs-viewer

PDF.js viewer directive for AngularJS
MIT License
137 stars 113 forks source link

One document, multiple downloads #71

Open Motard opened 7 years ago

Motard commented 7 years ago

I am having the following problem. When I open the first document in pdf.js viewer and click the download button, that document is downloaded. But when I open a second document, and click download, that document is downloaded two times. And if I open a third document, click download, the document is downloaded three times. And so on. The problem here is, I think, that the event to download is being binded to the download button multiple times. Do you have any ideia how I can resolve this issue?

brendangreen commented 6 years ago

Also having this issue as well. My app users are reporting that after viewing a few different PDF documents within the app, a download of a document will happen multiple times. In one case, 95 (!) copies of the PDF found their way into his downloads folder

peternolan commented 4 years ago

This issue still seems to be prevalent in the current version.