Skip to content

Commit

Permalink
first try, pdfjam
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-b committed Jul 29, 2023
1 parent 57e0737 commit c29fb7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit c29fb7b

Please sign in to comment.