Merge pull request #1205 from foivospro/main

Fix rotation function
This commit is contained in:
Anthony Stirling 2024-05-14 18:01:15 +01:00 committed by GitHub
commit 44e85a1d38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,6 +56,10 @@
document.querySelector("#editSection").style.display = "";
const existingPreview = document.getElementById("pdf-preview");
if (existingPreview) {
existingPreview.remove();
}
var url = URL.createObjectURL(fileInput.files[0])
pdfjsLib.GlobalWorkerOptions.workerSrc = 'pdfjs/pdf.worker.js'
const pdf = await pdfjsLib.getDocument(url).promise;