mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
fix enregistrement
This commit is contained in:
parent
784e15f252
commit
4f4d3a0583
@ -127,10 +127,9 @@ const save = async function () {
|
|||||||
const arrayBuffer = await pdffile.arrayBuffer()
|
const arrayBuffer = await pdffile.arrayBuffer()
|
||||||
const pdf = await PDFDocument.load(arrayBuffer)
|
const pdf = await PDFDocument.load(arrayBuffer)
|
||||||
|
|
||||||
console.log(pdf.getInfoDict())
|
|
||||||
pdf.getInfoDict().set(PDFName.of('fooMetadata'), PDFHexString.fromText("test de métadonéé"))
|
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) {
|
DL = function (d,f) {
|
||||||
let a = document.createElement("a"),
|
let a = document.createElement("a"),
|
||||||
u = URL.createObjectURL(d);
|
u = URL.createObjectURL(d);
|
||||||
|
Loading…
Reference in New Issue
Block a user