Here is the script where I merge the Figure and Supplementary Figure together before we submit the paper. I would like to know the difference between gs and pdftk?
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=Figure.gs.pdf Figure*.pdf gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=Supp.Figure.gs.pdf Supp*Fig*.pdf pdftk Figure*.pdf cat output Figure.tk.pdf pdftk Supp*Fig*.pdf cat output Supp.Figure.tk.pdf
Which one is better? From my own pdf merge process, I found:
- The size of the pdf file is much smaller than pdftk
- gs sometime will revolve 90 degree when merge pdf files
In my experience, I prefer pdftk.
Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty