aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-08-30 21:51:34 +0800
committerAaron LI <aly@aaronly.me>2019-08-30 21:51:34 +0800
commit114c2af01697eb0cb8f6f8c26ff5669f4f91d113 (patch)
tree2075796b6456bc85bc880fe493bcbbddde8cc441 /Makefile
parentb687029c56b214ce13473f0f3cfc44660b591e9f (diff)
downloadresume-114c2af01697eb0cb8f6f8c26ff5669f4f91d113.tar.bz2
Use 'gs' to merge zh and en resumes
* The 'gs' (GhostScript) is much more commonly installed than 'pdftk'. * The 'gs'-merged PDF has metadata (e.g., author, title, keywords) preserved, although it is the metadata of the last PDF on the command line is used for the output merged PDF. Still, it is better than 'pdftk' in this case, because the merged PDF by 'pdftk' lost those metatdata.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3a180bb..eb8c192 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,10 @@ en: resume-en.pdf
zh: resume-zh.pdf
$(PDFCAT): $(PDFS)
- pdftk $(PDFS) cat output $@
+ gs -dBATCH -dNOPAUSE -dPrinted=false \
+ -sDEVICE=pdfwrite \
+ -sOutputFile=$@ \
+ $(PDFS)
resume-zh.pdf: resume-zh.tex $(DEPS)
env TEXINPUTS=$(TEXINPUTS) latexmk -xelatex $<