From a794fb1576e6c74aa7f43e3e50b69ba889df1b5b Mon Sep 17 00:00:00 2001
From: Christian Rohlfing <rohlfing@ient.rwth-aachen.de>
Date: Wed, 21 Apr 2021 15:27:59 +0200
Subject: [PATCH] fix wrong pdf size

---
 watermark.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/watermark.py b/watermark.py
index 06e6861..25785b5 100644
--- a/watermark.py
+++ b/watermark.py
@@ -152,7 +152,7 @@ def watermark_img(img_file, template, dpi):
 
     # Save image as PDF and delete original image file
     pdf_file = os.path.splitext(img_file)[0] + '.pdf'
-    out.save(pdf_file)
+    out.save(pdf_file, resolution=dpi)
     if os.path.isfile(img_file):
         os.remove(img_file)
 
-- 
GitLab