Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 96787eb

Browse files
committedNov 29, 2024
Pass exapand=True to merge_translated_page to allow 2up printing to work.
1 parent 788e8b4 commit 96787eb

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.right), 0, True)
21+
lhs.merge_translated_page(rhs, float(lhs.mediabox.width), 0, True, True)
2222
writer.add_page(lhs)
2323
print(str(i) + " ")
2424
sys.stdout.flush()

0 commit comments

Comments
 (0)
Please sign in to comment.