Created
August 14, 2020 10:03
-
-
Save mludi/79bdc353f552dd246efb076decb760b9 to your computer and use it in GitHub Desktop.
Convert a3 pdf to a4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
files = os.listdir(os.getcwd()) | |
for file in os.listdir(os.getcwd()): | |
if file.endswith(".pdf"): | |
escaped = re.escape(file) | |
print(escaped) | |
os.system(f"pdfposter {escaped} splitted-{escaped} -m a4 -p 2x1a4") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment