[gs-bugs] [Bug 689682] New: ps2pdf in gswin32 has unexpected behaviour: PDF output overwrites PS input

bugs.ghostscript.com-bugzilla-daemon at ghostscript.com bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
Sun Feb 3 14:27:46 PST 2008


           Summary: ps2pdf in gswin32 has unexpected behaviour: PDF output
                    overwrites PS input
           Product: Ghostscript
           Version: 8.61
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: normal
          Priority: P4
         Component: Other Driver
        AssignedTo: support at artifex.com
        ReportedBy: mwtoews at sfu.ca
         QAContact: gs-bugs at ghostscript.com

Please see attached bug, which I originally found through MiKTeX GPL
Ghostscript, but have verified in the latest version of GPL Ghostscript (not
from MiKTeX).

Attempting to convert a ps file to pdf using ps2pdf command overwrites PDF
output to PS input file. This behaviour was first encountered while using ps4pdf
in MiKTeX 2.7, and can be reproduced in GPL Ghostscript 8.61 from cmd.exe (using
example pstricks-example-pics.ps):

> ps2pdf -dAutoRotatePages#/None pstricks-example-pics.ps

After this command, pstricks-example-pics.ps is now a PDF file (overwritten
original), and pstricks-example-pics.pdf is not created (as would be expected).

It is important to note that the typical usage (without -dAutoRotatePages#/None)
works as expected; particularly:
> ps2pdf pstricks-example-pics.ps
where pstricks-example-pics.ps is not overwritten and pstricks-example-pics.pdf
is created, as expected.

Ghostscript version (or include output from "gs -h"):
GPL Ghostscript 8.61 (2007-11-21)

Where you got Ghostscript:
http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl861.htm for 32-bit Microsoft Windows
or  gs861w32.exe

Other comments:
As noted previously, the ps4pdf command under MiKTeX command does not work
properly, due to the error in ps2pdf.

The pstricks-example-pics.ps file can be made with latex using the following TeX
source file, named "pstricks-example.tex":

Top of page.
\caption{The PSTricks figure should be here}

>From cmd.exe:
> latex pstricks-example.tex
> dvips -o pstricks-example-pics.ps pstricks-example.dvi

End of report. Thanks!

------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the gs-bugs mailing list