The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
chore: fix eslint errors
Ephraim Atta-Duncane5871da7b590
diff --git a/packages/lib/server-only/pdf/insert-field-in-pdf.ts b/packages/lib/server-only/pdf/insert-field-in-pdf.tsindex 61726f53c..e7b1e7c5a 100644--- a/packages/lib/server-only/pdf/insert-field-in-pdf.ts+++ b/packages/lib/server-only/pdf/insert-field-in-pdf.ts@@ -50,10 +50,10 @@ export const insertFieldInPDF = async (pdf: PDFDocument, field: FieldWithSignatulet imageWidth = image.width;let imageHeight = image.height;- const initialDimensions = {- width: imageWidth,- height: imageHeight,- };+ // const initialDimensions = {+ // width: imageWidth,+ // height: imageHeight,+ // };const scalingFactor = Math.min(fieldWidth / imageWidth, fieldHeight / imageHeight, 1);@@ -76,10 +76,10 @@ export const insertFieldInPDF = async (pdf: PDFDocument, field: FieldWithSignatulet textWidth = font.widthOfTextAtSize(field.customText, fontSize);const textHeight = font.heightAtSize(fontSize);- const initialDimensions = {- width: textWidth,- height: textHeight,- };+ // const initialDimensions = {+ // width: textWidth,+ // height: textHeight,+ // };const scalingFactor = Math.min(fieldWidth / textWidth, fieldHeight / textHeight, 1);