Skip to content

Commit f28c38f

Browse files
committed
fix broken positional parameters to merge_tranlated_page by switching to keyword parameter.
1 parent 96787eb commit f28c38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfly/up2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def main(pdf: Path, output: Path) -> None:
1818
for i in range(0, len(reader.pages) - 1, 2):
1919
lhs = reader.pages[i]
2020
rhs = reader.pages[i + 1]
21-
lhs.merge_translated_page(rhs, float(lhs.mediabox.width), 0, True, True)
21+
lhs.merge_translated_page(rhs, tx=float(lhs.mediabox.width), ty=0, expand=True)
2222
writer.add_page(lhs)
2323
print(str(i) + " ")
2424
sys.stdout.flush()

0 commit comments

Comments
 (0)