Skip to content
Snippets Groups Projects
Commit a794fb15 authored by Christian Rohlfing's avatar Christian Rohlfing
Browse files

fix wrong pdf size

parent 41f0e1ab
No related branches found
No related tags found
1 merge request!28Fix wrong PDF size
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment