Skip to content

Commit

Permalink
fix keep source confidential: pdf metadata shows that is has been cra…
Browse files Browse the repository at this point in the history
…fted using web technologies #146
  • Loading branch information
rwv committed Nov 17, 2023
1 parent c46a32e commit 816def4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/pdf-builder/pdf-lib/build-pdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ export async function buildPDF(images: ImageInfo[]): Promise<Blob> {
});
}

// TODO: use custom metadata
pdfDoc.setProducer(metadata.producer);
pdfDoc.setCreator(metadata.creator);

const pdfBytes = await pdfDoc.save();
return new Blob([pdfBytes], { type: "application/pdf" });
}

const metadata = {
producer: "SECnvtToPDF V1.0",
creator: "TOSHIBA e-STUDIO2010AC",
};

0 comments on commit 816def4

Please sign in to comment.