Creating PDF from PS files
Several years ago, I wrote a thesis about Elliptic Curve Cryptography. At that time, I splitted the files by chapter, so I have chapter 1-5. And these files were in PS format.
Yesterday, I decided to convert those files to PDF.
Here is how I do the conversion :
First I used ps2pdf program to convert PS to PDF files :
$ ps2pdf13 ch01.ps
and so on.
I found out that chapter 1,3 and 5 contain one empty page. So I removed the empty page on the last page using pdftk program :
$ pdftk ch01.pdf cat 1-3 output ch01-new.pdf
$ pdftk ch03.pdf cat 1-13 output ch03-new.pdf
$ pdftk ch05.pdf cat 1-2 output ch05-new.pdf
Then I concatenatted those 5 PDF files into one big file (ecc-thesis.pdf) :
$ pdftk ch01-new.pdf ch02.pdf ch03-new.pdf ch04.pdf ch05-new.pdf output ecc-thesis.pdf
No comments:
Post a Comment