[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Silencing output from pstopdf for use in LedgerSMB/Form.pm?



On Sat, 31 Jan 2009 15:30:58 -0800, Roderick A. Anderson wrote:
> Jeff Kowalczyk wrote:
>> If anyone has an idea to silence or ignore pstopdf output in the system()
>> call, perhaps this would be good commit to branches/1.2 and trunk,
>> facilitating use of additional advanced-graphics CTAN packages.
> 
> How about using -o and -l?  -o output filename (otherwise it is munged 
> from the input filename) and -l specifies that any messages generated
> during file conversion be written to a log file (/dev/null).
> 
> Untested.  Just a theory.

The pstopdf packaged with texlive-2008 doesn't seem to publish those
options.

pstopdf does seem like a bit of an odd duck compared to the other
texlive-packaged utilities, and makes me question whether the
PS-to-PDF path is more robust, I had presumed that to be the case.

PSTOPDF(1)              ConTeXt                     PSTOPDF(1)

NAME
       pstopdf - convert EPS to PDF

SYNOPSIS
       pstopdf [ OPTION ...  ] FILE [ ...  ]

DESCRIPTION
       pstopdf converts EPS (encapsulated PostScript) to PDF.

OPTIONS
       --help Print usage and version information.

       --convert
              Convert EPS to PDF.  This option is assumed if none is given.

       --method=string
              What  method  to use for bounding boxes when converting to
              PDF.  Specify one of crop, bounded (the default), or raw. 
              Older versions of ConTeXt used  numerical methods (1, 2, or
              3).

       --resolution=string
              The resolution to use when when converting to pdf.  Specify
              one of low, normal, medium, high, printer, print, screen,
              ebook, or default.

       --request
              Handle exa request file.

       --watch
              Watch folders for conversions (untested).