', { 'class' : 'h-pdf-progress' } );
+
+ progress.css( { top : (canvas_container.height() / 2) - (progress.height() / 2), left : (canvas_container.width() / 2) - (progress.width() / 2) } );
+
+ progress.append($('
', { 'class' : 'h-pdf-progress-bar' } ).append($('
', { 'class' : 'h-pdf-progress-bar-overlay' } )));
+
+ canvas_container.append(progress);
+
+ PDFJS.getDocument(settings.source).then(
+ function getDocumentCallback(pdf) {
+
+ canvas_container.html(canvas);
+
+ page_count = pdf.numPages;
+
+ $('#pagecount').html(page_count);
+
+ mydoc.data('pdf', pdf);
+
+ renderPage(pdf, settings.page, canvas.get()[0], settings.scale);
+
+ },
+ function getDocumentError(message, exception) {
+
+
+ },
+ function getDocumentProgress(progressData) {
+
+ var pct = 100 * (progressData.loaded / progressData.total);
+
+ progress.children('div').css('width', pct + '%');
+
+ }
+ );
+
+ this.data('current_page', settings.page);
+
+ this.data('scale', settings.scale);
+
+ $(window).resize(function(){
+
+ resize_canvas();
+
+ });
+
+ return this;
+
+ };
+})( jQuery );
diff --git a/common/static/js/vendor/pdf.js.REMOVED.git-id b/common/static/js/vendor/pdf.js.REMOVED.git-id
deleted file mode 100644
index 2c8e1c2562..0000000000
--- a/common/static/js/vendor/pdf.js.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-14bab45163f93a24ad55d82faafc3e56bce0a222
\ No newline at end of file