Skip to content
Snippets Groups Projects
Commit 6a5aa3a4 authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

scaling

parent 58020f3d
No related branches found
No related tags found
1 merge request!1Draft: Resolve "[Document Sealing] Implement PDF parser"
Pipeline #49121 passed
......@@ -49,7 +49,7 @@ class PDFparser {
this.insertQrCode = (imgBytes, url) => __awaiter(this, void 0, void 0, function* () {
const pdfDoc = yield PDFDocument.load(this.document);
const img = yield pdfDoc.embedPng(imgBytes);
const scaled = img.scale(0.1);
const scaled = img.scale(0.2);
const pages = pdfDoc.getPages();
const firstPage = pages[0];
firstPage.drawImage(img, {
......
......@@ -48,7 +48,7 @@ class PDFparser {
const pdfDoc = await PDFDocument.load(this.document);
const img = await pdfDoc.embedPng(imgBytes);
const scaled = img.scale(0.1);
const scaled = img.scale(0.2);
const pages = pdfDoc.getPages();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment