From c29fb7b2e4fc67c950177ec05ad97bc6235856ae Mon Sep 17 00:00:00 2001 From: jr-b Date: Fri, 28 Jul 2023 22:15:59 -0400 Subject: [PATCH] first try, pdfjam --- Dockerfile | 2 +- script.sh | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5d56430..6f92c62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:latest RUN ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime \ && echo "Etc/UTC" > /etc/timezone \ && apt-get update && apt-get upgrade -y \ - && apt-get install python3-pip texlive-latex-base texlive-xetex texlive-lang-french texlive-latex-extra texlive-fonts-recommended pandoc xzdec -y \ + && apt-get install wget python3-pip texlive-latex-base texlive-xetex texlive-lang-french texlive-latex-extra texlive-fonts-recommended pandoc xzdec -y \ && rm -rf /var/lib/apt/lists/* # Copy the application in folder found in $PATH diff --git a/script.sh b/script.sh index 9857c85..0f44e9a 100644 --- a/script.sh +++ b/script.sh @@ -10,6 +10,12 @@ sleep 10 echo $(python3 -V) >> output/python-version echo $(pip3 -V) >> output/python-version -pip3 install --no-input pdfnup==0.4.1 +### Install Tex Live +## https://tug.org/texlive/quickinstall.html -echo $(pdfnup -h) >> output/pdfnup \ No newline at end of file +wget https://github.com/rrthomas/pdfjam/releases/download/v3.06/pdfjam-3.06.tar.gz -O /tmp/pdfjam-3.06.tar.gz +zcat < /tmp/pdfjam-3.06.tar.gz | tar xf - +echo $(ll /tmp/pdfjam-3.06) >> output/pdfjam-logs +PATH=/tmp/pdfjam-3.06/bin/pdfjam:$PATH + +pdfjam --batch --nup 2x1 --suffix 2up --landscape output/out.pdf \ No newline at end of file