Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 5764c67416561ab82b35afcf9c650e17 > files > 621

GMT-doc-4.5.2-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="node190.html">
<LINK REL="up" HREF="node189.html">
<LINK REL="next" HREF="node192.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html5335"
  HREF="node192.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html5329"
  HREF="node189.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html5325"
  HREF="node190.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html5331"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html5333"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html5336"
  HREF="node192.html">C.3 Examples</A>
<B> Up:</B> <A NAME="tex2html5330"
  HREF="node189.html">C.2 Converting GMT PostScript</A>
<B> Previous:</B> <A NAME="tex2html5326"
  HREF="node190.html">C.2.1 When converting or</A>
 &nbsp; <B>  <A NAME="tex2html5332"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html5334"
  HREF="node255.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION002022000000000000000"></A><A NAME="29947"></A>
<BR>
C.2.2 Using <A NAME="tex2html1681"
  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="tex2html1682"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> utility <A NAME="tex2html1683"
  HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="29955"></A>. It is designed to provide the best quality PDF and raster files using <I>ghostscript</I><A NAME="29959"></A> as a rendering engine. The program <A NAME="tex2html1684"
  HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="29963"></A> avoids anti-aliasing and lossy compression techniques that are default to <I>ghostscript</I><A NAME="29967"></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="tex2html1685"
  HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="29975"></A> may also come in handy. When you have <I>not</I> supplied the <B>-P</B> option in your first <A NAME="tex2html1686"
  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="tex2html1687"
  HREF="../man/ps2raster.html"><I><B>ps2raster</B></I></A><A NAME="29985"></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="tex2html5335"
  HREF="node192.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html5329"
  HREF="node189.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html5325"
  HREF="node190.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html5331"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html5333"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html5336"
  HREF="node192.html">C.3 Examples</A>
<B> Up:</B> <A NAME="tex2html5330"
  HREF="node189.html">C.2 Converting GMT PostScript</A>
<B> Previous:</B> <A NAME="tex2html5326"
  HREF="node190.html">C.2.1 When converting or</A>
 &nbsp; <B>  <A NAME="tex2html5332"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html5334"
  HREF="node255.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-01-14
</ADDRESS>
</BODY>
</HTML>