From 114c2af01697eb0cb8f6f8c26ff5669f4f91d113 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 30 Aug 2019 21:51:34 +0800 Subject: 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. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 $< -- cgit v1.2.2