diff --git a/public/js/organization.js b/public/js/organization.js index c82db96..29fb33a 100644 --- a/public/js/organization.js +++ b/public/js/organization.js @@ -25,24 +25,31 @@ var loadPDF = async function(pdfBlob, filename) { for(var pageNumber = 1; pageNumber <= pdf.numPages; pageNumber++ ) { pdf.getPage(pageNumber).then(function(page) { let viewport = page.getViewport({scale: 1}); - let scale = (document.getElementById('container-pages').clientWidth - (8*nbPagePerLine) - 12) / viewport.width / nbPagePerLine; + let scale = (document.getElementById('container-pages').clientWidth - (12*nbPagePerLine) - 12) / viewport.width / nbPagePerLine; viewport = page.getViewport({scale: scale}); var pageIndex = page.pageNumber - 1; - document.getElementById('container-pages').insertAdjacentHTML('beforeend', '
Page '+page.pageNumber+' - '+filename+'