<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY psutils-download-http "http://pkgs.fedoraproject.org/repo/pkgs/psutils/psutils-p17.tar.gz/&psutils-md5sum;/psutils-&psutils-version;.tar.gz">
  <!ENTITY psutils-download-ftp  " ">
<!--  <!ENTITY psutils-download-ftp  "ftp://ftp.knackered.org/pub/psutils/psutils-&psutils-version;.tar.gz">-->
  <!ENTITY psutils-md5sum        "b161522f3bd1507655326afa7db4a0ad">
  <!ENTITY psutils-size          "68 KB">
  <!ENTITY psutils-buildsize     "740 KB">
  <!ENTITY psutils-time          "less than 0.1 SBU">
]>

<sect1 id="psutils" xreflabel="PSUtils-&psutils-version;">
  <?dbhtml filename="psutils.html"?>

  <sect1info>
    <othername>$LastChangedBy: bdubbs $</othername>
    <date>$Date: 2015-03-01 20:45:33 -0500 (Sun, 01 Mar 2015) $</date>
  </sect1info>

  <title>PSUtils-&psutils-version;</title>

  <indexterm zone="psutils">
    <primary sortas="a-PSUtils">PSUtils</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to PSUtils</title>

    <para><application>PSUtils</application> is a set of utilities to manipulate
    PostScript files.</para>

    &lfs77_checked;

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>Download (HTTP): <ulink url="&psutils-download-http;"/></para>
      </listitem>
      <listitem>
        <para>Download (FTP): <ulink url="&psutils-download-ftp;"/></para>
      </listitem>
      <listitem>
        <para>Download MD5 sum: &psutils-md5sum;</para>
      </listitem>
      <listitem>
        <para>Download size: &psutils-size;</para>
      </listitem>
      <listitem>
        <para>Estimated disk space required: &psutils-buildsize;</para>
      </listitem>
      <listitem>
        <para>Estimated build time: &psutils-time;</para>
      </listitem>
    </itemizedlist>

    <para condition="html" role="usernotes">User Notes:
    <ulink url="&blfs-wiki;/psutils"/></para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of PSUtils</title>

    <para>Install <application>PSUtils</application> by running the
    following commands:</para>

<screen><userinput>sed 's@/usr/local@/usr@g' Makefile.unix &gt; Makefile &amp;&amp;
make</userinput></screen>

    <para>This package does not come with a test suite.</para>

    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>

<screen role="root"><userinput>make install</userinput></screen>

  </sect2>

  <sect2 role="commands">
    <title>Command Explanations</title>

    <para><command>sed 's@/usr/local@/usr@g' Makefile.unix &gt; Makefile</command>:
    This command creates a <filename>Makefile</filename> that installs the
    program to the <filename class="directory">/usr</filename> prefix instead
    of the <filename class="directory">/usr/local</filename> prefix.</para>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>epsffit, extractres, fixdlsrps, fixfmps, fixmacps, fixpsditps,
        fixpspps, fixscribeps, fixtpps, fixwfwps, fixwpps, fixwwps, getafm,
        includeres, psbook, psmerge, psnup, psresize, psselect, pstops,
        and showchar</seg>
        <seg>None</seg>
        <seg>/usr/share/psutils</seg>
      </seglistitem>
    </segmentedlist>

    <para>Sometimes <command>psnup</command> and other utilities from this
    package produce PostScript files that don't conform to Adobe's DSC
    standard. <application>CUPS</application> may print them incorrectly.
    On the other hand, <application>CUPS</application> has builtin
    replacements for most commands from this package. For example, to print
    a document 2-up, you can issue this command:</para>

<screen><userinput>lp -o number-up=2 <replaceable>&lt;filename&gt;</replaceable></userinput></screen>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="epsffit">
        <term><command>epsffit</command></term>
        <listitem>
          <para>fits an EPSF file to a given bounding box.</para>
          <indexterm zone="psutils epsffit">
            <primary sortas="b-epsffit">epsffit</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="psbook">
        <term><command>psbook</command></term>
        <listitem>
          <para>rearranges pages into signatures.</para>
          <indexterm zone="psutils psbook">
            <primary sortas="b-psbook">psbook</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="psnup">
        <term><command>psnup</command></term>
        <listitem>
          <para>puts multiple pages per physical sheet of paper.</para>
          <indexterm zone="psutils psnup">
            <primary sortas="b-psnup">psnup</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="psresize">
        <term><command>psresize</command></term>
        <listitem>
          <para>alters the document paper size.</para>
          <indexterm zone="psutils psresize">
            <primary sortas="b-psresize">psresize</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="psselect">
        <term><command>psselect</command></term>
        <listitem>
          <para>selects pages and page ranges.</para>
          <indexterm zone="psutils psselect">
            <primary sortas="b-psselect">psselect</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="pstops">
        <term><command>pstops</command></term>
        <listitem>
          <para>performs general page rearrangements and selection.</para>
          <indexterm zone="psutils pstops">
            <primary sortas="b-pstops">pstops</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term><command>scripts</command></term>
        <listitem>
          <para>the remaining commands are scripts that perform specific
          functions described in their respective man pages.</para>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
