diff --git a/src/img2pdf.py b/src/img2pdf.py index 20fe784..1267028 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -759,7 +759,7 @@ def in_to_pt(length): return 72*length -def get_layout_fun(pagesize, imgsize, border, fit, auto_orient): +def get_layout_fun(pagesize=None, imgsize=None, border=None, fit=None, auto_orient=False): def fitfun(fit, imgwidth, imgheight, fitwidth, fitheight): if fitwidth is None and fitheight is None: raise ValueError("fitwidth and fitheight cannot both be None")