Skip to content

Commit

Permalink
Fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Dec 9, 2023
1 parent 8e32c11 commit 514d369
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions render50
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,11 @@ def concatenate(output, inputs):
# Leftmost page
left = copy(readers[0].pages[i]) if i < len(readers[0].pages) else copy(page)

# Rotate page
# https://github.com/py-pdf/pypdf/issues/2139#issuecomment-1702462468
# https://stackoverflow.com/a/75646585
left.transfer_rotation_to_content()

# Rightmost pages
for reader in readers[1:]:
right = copy(reader.pages[i]) if i < len(reader.pages) else copy(page)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"Topic :: Utilities"
],
description="This is render50, with which you can render source code as PDFs.",
install_requires=["backports.shutil_get_terminal_size", "backports.shutil_which", "braceexpand", "beautifulsoup4", "natsort", "Pygments>=2.7.1", "pypdf==3.17.0", "requests", "six>=1.10.0", "termcolor", "WeasyPrint"],
install_requires=["backports.shutil_get_terminal_size", "backports.shutil_which", "braceexpand", "beautifulsoup4", "natsort", "Pygments>=2.7.1", "pypdf>=3.17.1", "requests", "six>=1.10.0", "termcolor", "WeasyPrint"],
keywords=["render", "render50"],
license="GPLv3",
long_description_content_type="text/markdown",
name="render50",
python_requires=">=3.9",
scripts=["render50"],
url="https://github.com/cs50/render50",
version="9.2.6"
version="9.2.7"
)

0 comments on commit 514d369

Please sign in to comment.