From e25c38542217087f50c82c9dc8366b6523b24ad4 Mon Sep 17 00:00:00 2001 From: le0m Date: Tue, 24 Sep 2024 11:56:40 +0200 Subject: [PATCH] fix: set default margins to correct size --- print2pdf/print2pdf.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/print2pdf/print2pdf.go b/print2pdf/print2pdf.go index 0bec3a8..6e83919 100644 --- a/print2pdf/print2pdf.go +++ b/print2pdf/print2pdf.go @@ -202,10 +202,10 @@ func getPrintParams(data GetPDFParams) (page.PrintToPDFParams, error) { params := page.PrintToPDFParams{ PrintBackground: true, Landscape: false, - MarginTop: 0, - MarginBottom: 0, - MarginLeft: 0, - MarginRight: 0, + MarginTop: 0.4, + MarginBottom: 0.4, + MarginLeft: 0.4, + MarginRight: 0.4, Scale: 1, GenerateDocumentOutline: false, }