[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
http://bugs.ghostscript.com/show_bug.cgi?id=689682
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
Hi,
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).
------------------------------------------------------------------------
Symptoms:
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":
\documentclass[11pt,oneside]{article}
\usepackage{pst-pdf}
\begin{document}
Top of page.
\begin{figure}
\begin{pspicture}(0,0)(6,6)
%\psgrid[gridcolor=lightgray,gridlabels=0pt]
\psline[linecolor=red](1,1)(5,1)(1,4)(1,1)
\pscurve[linecolor=green,linewidth=2pt,%
showpoints=true](5,5)(3,2)(4,4)(2,3)
\pscircle[linecolor=blue,linestyle=dashed](3,2.5){1}
\end{pspicture}
\caption{The PSTricks figure should be here}
\end{figure}
\end{document}
>From cmd.exe:
> latex pstricks-example.tex
> dvips -o pstricks-example-pics.ps pstricks-example.dvi
End of report. Thanks!
+mt
------- 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