Convert eps to pdf with the correct page size or boundaries

ps2pdf by itself always converted the ps file to pdf onto a different sized paper. I finally discovered how to get the right paper size via this post. Here is my eps2pdf.sh script:

 <pre class="src src-sh"><span style="color: #ff4500;">#</span><span style="color: #ff4500;">! /bin/</span><span style="color: #00ffff;">bash</span>

## look in comments ## http://opendevice.blogspot.com/2007/05/eps-to-pdf-how-to-avoid-clipping.html for file in “$@” do ps2pdf -dEPSCrop “$file” done

About Vinh Nguyen

Statistician

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>