Bopytex/bopytex/worker/join_pdf.py

14 lines
339 B
Python
Raw Normal View History

2022-04-13 08:46:53 +00:00
import subprocess
2022-04-13 10:26:04 +00:00
from bopytex.message import SubprocessMessage
2022-04-13 08:46:53 +00:00
def pdfjam(args: dict, deps, output):
joining_process = subprocess.Popen(
["pdfjam"] + deps + ["-o", output],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True,
)
2022-04-13 10:26:04 +00:00
return SubprocessMessage(joining_process)
2022-04-13 08:46:53 +00:00