Fix for adding custom resolutions
This commit is contained in:
parent
700e62f1d8
commit
5c7753d6c4
1 changed files with 3 additions and 0 deletions
|
@ -285,6 +285,9 @@ def convert(images, dpi, x, y, title=None, author=None, creator=None, producer=N
|
|||
pdf_x, pdf_y = x, x*height/width
|
||||
elif not x:
|
||||
pdf_x, pdf_y = y*width/height, y
|
||||
else:
|
||||
pdf_x = x
|
||||
pdf_y = y
|
||||
|
||||
pdf.addimage(color, width, height, imgformat, imgdata, pdf_x, pdf_y)
|
||||
|
||||
|
|
Loading…
Reference in a new issue