Sophie

Sophie

distrib > Fedora > 13 > x86_64 > media > updates > by-pkgid > bde97f1793fb4b5ac4b6e6950d3353e2 > files > 625

GMT-doc-4.5.6-1.fc13.noarch.rpm

<!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="node193.html">
<LINK REL="up" HREF="node192.html">
<LINK REL="next" HREF="node195.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html5485"
  HREF="node195.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html5479"
  HREF="node192.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html5475"
  HREF="node193.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html5481"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html5483"
  HREF="node258.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html5486"
  HREF="node195.html">C.3 Examples</A>
<B> Up:</B> <A NAME="tex2html5480"
  HREF="node192.html">C.2 Converting GMT PostScript</A>
<B> Previous:</B> <A NAME="tex2html5476"
  HREF="node193.html">C.2.1 When converting or</A>
 &nbsp; <B>  <A NAME="tex2html5482"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html5484"
  HREF="node258.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION002022000000000000000"></A><A NAME="31045"></A>
<BR>
C.2.2 Using <A NAME="tex2html1781"
  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="tex2html1782"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> utility <A NAME="tex2html1783"
  HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="31053"></A>. It is designed to provide the best quality PDF and raster files using <I>ghostscript</I><A NAME="31057"></A> as a rendering engine. The program <A NAME="tex2html1784"
  HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="31061"></A> avoids anti-aliasing and lossy compression techniques that are default to <I>ghostscript</I><A NAME="31065"></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="tex2html1785"
  HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="31073"></A> may also come in handy. When you have <I>not</I> supplied the <B>-P</B> option in your first <A NAME="tex2html1786"
  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="tex2html1787"
  HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="31083"></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="tex2html5485"
  HREF="node195.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html5479"
  HREF="node192.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html5475"
  HREF="node193.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html5481"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html5483"
  HREF="node258.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html5486"
  HREF="node195.html">C.3 Examples</A>
<B> Up:</B> <A NAME="tex2html5480"
  HREF="node192.html">C.2 Converting GMT PostScript</A>
<B> Previous:</B> <A NAME="tex2html5476"
  HREF="node193.html">C.2.1 When converting or</A>
 &nbsp; <B>  <A NAME="tex2html5482"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html5484"
  HREF="node258.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2011-02-27
</ADDRESS>
</BODY>
</HTML>