Bopytex/bopytex/worker/join_pdf.py

14 lines
339 B
Python

import subprocess
from bopytex.message import SubprocessMessage
def pdfjam(args: dict, deps, output):
joining_process = subprocess.Popen(
["pdfjam"] + deps + ["-o", output],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True,
)
return SubprocessMessage(joining_process)