var url = 'D:/Project/Documents/Invoices/invoices/invoice.pdf'; PDFJS.getDocument(url) .then(function(pdf) { var elem = document.getElementById('myCanvas'); $(".document").on('dblclick',function() { elem.addEventListener('dblclick', function() { }, false); var index = $(this).attr("id"); }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)