diff --git a/public/js/metadata.js b/public/js/metadata.js index 3b01c9b..1a4abbe 100644 --- a/public/js/metadata.js +++ b/public/js/metadata.js @@ -127,10 +127,9 @@ const save = async function () { const arrayBuffer = await pdffile.arrayBuffer() const pdf = await PDFDocument.load(arrayBuffer) - console.log(pdf.getInfoDict()) pdf.getInfoDict().set(PDFName.of('fooMetadata'), PDFHexString.fromText("test de métadonéé")) - const newPDF = new Blob([pdf.save()], {type: "application/pdf"}) + const newPDF = new Blob([await pdf.save()], {type: "application/pdf"}) DL = function (d,f) { let a = document.createElement("a"), u = URL.createObjectURL(d);