From 78ec391dc8dc7d858421aed6f14dc2c7020ef2ef Mon Sep 17 00:00:00 2001 From: Drew Short Date: Thu, 21 Jan 2016 20:19:29 -0600 Subject: [PATCH] Working on improving the process of joining the PDFs --- build-pdf-docker.sh => build-pdf-resume-docker.sh | 0 build-pdf.sh => build-pdf-resume.sh | 2 +- build-resume-with-cover-letter-pdf-docker.sh | 11 ++++++----- 3 files changed, 7 insertions(+), 6 deletions(-) rename build-pdf-docker.sh => build-pdf-resume-docker.sh (100%) rename build-pdf.sh => build-pdf-resume.sh (83%) diff --git a/build-pdf-docker.sh b/build-pdf-resume-docker.sh similarity index 100% rename from build-pdf-docker.sh rename to build-pdf-resume-docker.sh diff --git a/build-pdf.sh b/build-pdf-resume.sh similarity index 83% rename from build-pdf.sh rename to build-pdf-resume.sh index 116765e..ddbf581 100755 --- a/build-pdf.sh +++ b/build-pdf-resume.sh @@ -3,6 +3,6 @@ echo "$(id -u)" > userid.info # Script to build a PDF from the latex source -docker run -v $(pwd):/source schickling/latex /usr/bin/env bash /source/build-pdf-docker.sh +docker run -v $(pwd):/source schickling/latex /usr/bin/env bash /source/build-pdf-resume-docker.sh rm userid.info diff --git a/build-resume-with-cover-letter-pdf-docker.sh b/build-resume-with-cover-letter-pdf-docker.sh index 79493e8..c6a8c29 100755 --- a/build-resume-with-cover-letter-pdf-docker.sh +++ b/build-resume-with-cover-letter-pdf-docker.sh @@ -5,16 +5,17 @@ cd /source userid="$(cat userid.info)" # Get PDFJam to combine the pdf's -curl -LSO http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/pdfjam_latest.tgz -tar -zxvf pdfjam_latest.tgz -export PATH="$PWD/pdfjam/bin:$PATH" +#curl -LSO http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/pdfjam_latest.tgz +#tar -zxvf pdfjam_latest.tgz +#export PATH="$PWD/pdfjam/bin:$PATH" # Script to build a PDF from the latex source latex --output-format pdf DPSResume.tex latex --output-format pdf ${1}.tex -outfile="DPSResume_With_Coverletter.pdf" -pdfjoin ${1}.pdf DPSResume.pdf --outfile $outfile +outfile="${1}_with_Resume.pdf" +pdfjam --fitpaper 'true' --rotateoversize 'false' --suffix joined --no-landscape --outfile $outfile ${1}.pdf DPSResume.pdf +#pdfjoin ${1}.pdf DPSResume.pdf --no-landscape --outfile $outfile chown $userid:$userid $outfile chmod 666 $outfile