[tex-k] epstopdf doesn't like --filter and --outfile option together

Julian Gilbey jdg at polya.uklinux.net
Sat Mar 13 23:36:39 CET 2010

On Sat, Mar 13, 2010 at 03:51:48PM +0100, Hilmar Preuße wrote:
> Dear all,
> as found in the Debian bug tracking system the --outfile options
> stops working as soon as the --filter option is used. The following
> command is expected to create the file a.pdf, but the pdf is written
> to stdout:
> epstopdf --filter --outfile=a.pdf < a.ps
> The problem is still in the latest epstopdf from CTAN. Please have a
> look at this.

This is due to the section around line 304 in epstopdf.pl:

if ($::opt_filter) {
  debug "Filtering: will write standard output";
  $OutputFilename = "-";
} else {
  debug "Output filename:", $OutputFilename;

which should presumably be replaced by the single line:

debug "Output filename:", $OutputFilename;

There is a slight contradiction in the manpage for epstopdf, where
only the explanation of --outfile suggests that --filter overrides
--outfile; presumably, this should instead say "If --nogs or --filter
is specified, the default is to write to standard output."  Here are
the relevant parts:

         write result to file; the default is  to  construct  the output
         file  name  by  replacing  any  extension in the input file with
         .pdf.  If --nogs or --filter is  specified,  write  to standard
         read standard input (default: off).

  Examples for producing "test.pdf":
  epstopdf test.eps
  produce postscript | epstopdf --filter >test.pdf
  produce postscript | epstopdf -f -d -o=test.pdf


More information about the tex-k mailing list