<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2002-2-1 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>C.2.2 Using ps2raster</TITLE> <META NAME="description" CONTENT="C.2.2 Using ps2raster"> <META NAME="keywords" CONTENT="GMT_Docs"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="GMT_Docs.css"> <LINK REL="previous" HREF="node191.html"> <LINK REL="up" HREF="node190.html"> <LINK REL="next" HREF="node193.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html5383" HREF="node193.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5377" HREF="node190.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5373" HREF="node191.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5379" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5381" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5384" HREF="node193.html">C.3 Examples</A> <B> Up:</B> <A NAME="tex2html5378" HREF="node190.html">C.2 Converting GMT PostScript</A> <B> Previous:</B> <A NAME="tex2html5374" HREF="node191.html">C.2.1 When converting or</A> <B> <A NAME="tex2html5380" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5382" HREF="node256.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION002022000000000000000"></A><A NAME="30536"></A> <BR> C.2.2 Using <A NAME="tex2html1711" HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A> </H2> <P> The remedy to all the problems mentioned in the previous section is readily available to you in the form of the <A NAME="tex2html1712" HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> utility <A NAME="tex2html1713" HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="30544"></A>. It is designed to provide the best quality PDF and raster files using <I>ghostscript</I><A NAME="30548"></A> as a rendering engine. The program <A NAME="tex2html1714" HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="30552"></A> avoids anti-aliasing and lossy compression techniques that are default to <I>ghostscript</I><A NAME="30556"></A> and includes the fonts into the resulting PDF file to ensure portability. By default the fonts are rendered at 720 dots-per-inch in a PDF file and images are sampled to 300 dpi, but that can be changed with the <B>-E</B> option. Simply run <PRE> ps2raster -A -P -Tf *.ps </PRE>to convert all <I>PostScript</I> files to PDF while cropping it to the smallest possible BoundingBox. Or use the <B>-Tg</B> option to convert your files to PNG. <P> The <B>-P</B> option of <A NAME="tex2html1715" HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="30564"></A> may also come in handy. When you have <I>not</I> supplied the <B>-P</B> option in your first <A NAME="tex2html1716" HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> plot command, your plot will be in Landscape mode. That means that the plot will be rotated 90 degrees (anti-clockwise) to fit on a Portrait mode page when coming out of the printer. The <B>-P</B> option of <A NAME="tex2html1717" HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="30574"></A> will undo that rotation, so that you do not have to do so within your document. This will only affect Landscape plots; Portrait plots will not be rotated. <P> <HR> <!--Navigation Panel--> <A NAME="tex2html5383" HREF="node193.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5377" HREF="node190.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5373" HREF="node191.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5379" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5381" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5384" HREF="node193.html">C.3 Examples</A> <B> Up:</B> <A NAME="tex2html5378" HREF="node190.html">C.2 Converting GMT PostScript</A> <B> Previous:</B> <A NAME="tex2html5374" HREF="node191.html">C.2.1 When converting or</A> <B> <A NAME="tex2html5380" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5382" HREF="node256.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2010-07-14 </ADDRESS> </BODY> </HTML>