Loading Bar For Pdf.js
You can use it in the following way:
var progressCallback = function(progress){
var percentLoaded = progress.loaded / progress.total;
console.log(progress); // Progress has loaded and total
};
PDFJS.getDocument = function getDocument(source,
pdfDataRangeTransport,
passwordCallback,
progressCallback) {
// Do something...
});
Hope it helps!