Skip to content

Commit e2eaa8a

Browse files
committed
pdf
1 parent 0db0607 commit e2eaa8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx_runpython/tools/img_export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def images2pdf(
3131
3232
python -m img2pdf --output doc.pdf img/* -S A4 --auto-orient
3333
"""
34-
from img2pdf import convert, Rotation
34+
from img2pdf import convert, Rotation, default_layout_fun
3535

3636
if isinstance(images, str):
3737
if "," in images:
@@ -68,7 +68,7 @@ def images2pdf(
6868
)
6969

7070
all_images.sort()
71-
layout_fun = None
71+
layout_fun = default_layout_fun
7272
if zoom != 1 or rotate != 0:
7373
# See https://github.com/myollie/img2pdf/blob/master/src/img2pdf.py
7474
from PIL import Image

0 commit comments

Comments
 (0)