mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 08:42:12 +10:00
💄 signature drawing matching field
This commit is contained in:
@ -12,7 +12,7 @@ export async function insertImageInPDF(
|
|||||||
const pages = pdfDoc.getPages();
|
const pages = pdfDoc.getPages();
|
||||||
const pdfPage = pages[page];
|
const pdfPage = pages[page];
|
||||||
const pngImage = await pdfDoc.embedPng(image);
|
const pngImage = await pdfDoc.embedPng(image);
|
||||||
const drawSize = { width: 192, height: 96 };
|
const drawSize = { width: 192, height: 64 };
|
||||||
|
|
||||||
pdfPage.drawImage(pngImage, {
|
pdfPage.drawImage(pngImage, {
|
||||||
x: positionX,
|
x: positionX,
|
||||||
|
|||||||
Reference in New Issue
Block a user