diff options
author | Aaron LI <aly@aaronly.me> | 2019-08-30 21:51:34 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-08-30 21:51:34 +0800 |
commit | 114c2af01697eb0cb8f6f8c26ff5669f4f91d113 (patch) | |
tree | 2075796b6456bc85bc880fe493bcbbddde8cc441 | |
parent | b687029c56b214ce13473f0f3cfc44660b591e9f (diff) | |
download | resume-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.
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 $< |