Fix Rotation function

This commit is contained in:
foiv 2024-05-14 12:11:30 +03:00
parent f2b7aeeb1c
commit 44f9313012

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;