In the case, one want to create one pdf file from N pdf files, gs will save us to do this quickly.

For example,  one has the following pdf files :





And would like to have result.pdf from these pdf files, the following command will create the result.pdf file

gs -q -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=result.pdf -dBATCH file{1..10}.pdf

'Computer > linux' 카테고리의 다른 글

Undo git push  (0) 2017.10.22
Combine multiple PDF files to a pdf file  (0) 2017.08.28
how to acceess udev rule parameter  (0) 2017.08.25
How to get only the mac address (Linux)  (0) 2017.08.25
posted by citadel
Sometimes, I want to extract some plot or graphical object
s from pdf file such as data sheet.  The Inkscape  can handle eps file in Linux.

With the following gs command, I can extract graphical information from pdf file.

gs -dSAFTER -dBATCH -dNOPAUSE -r300 -sDEVICE=epswrite -sOutputFile=result-%02d.eps  input.pdf

xterm output example


It is the same method as old post .

'Computer > linux' 카테고리의 다른 글

ntpdate and ntp  (0) 2007.08.16
How to save each page of a pdf file to eps file  (0) 2007.08.16
새로운 세계 새로운 사람들 - 음악  (0) 2007.08.14
emacs configuration file  (0) 2007.08.10
posted by citadel