Consider the following MWE:
\documentclass{article}
\usepackage{pst-all}
\begin{document}
\begin{pspicture}(0,-3)(12,5)
\psline[linewidth=2pt]{->}(1.5,0)(0,0)
\end{pspicture}
\end{document}
This compiles fine with latex
(not with pdflatex
) but when run with htlatex
it leads to the ghostscript error:
System call: dvips -E -q -Ppdf -f q.idv -pp 2 > zzq.ps
System return: 0
System call: gs -sDEVICE=pngalpha -sOutputFile=q0x.png -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zzq.ps -c quit
Error: /configurationerror in --setpagedevice--
Additional information: [/PageSize [0 0]]
Operand stack:
--nostringval-- (%%BoundingBox: 72 72 72 72) --dict:1/2(ro)(G)-- --nostringval-- --nostringval-- (%%BoundingBox: 72 72 72 72) 1 72 72 false --dict:1/1(L)--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1951 1 3 %oparray_pop 1950 1 3 %oparray_pop --nostringval-- 1934 1 3 %oparray_pop 1820 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- %ztokenexec_continue (scanner state) --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- 1913 10 3 %oparray_pop --nostringval-- --nostringval-- --dict:1/10(L)-- --nostringval-- 15 %dict_continue
Dictionary stack:
--dict:1190/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
Current allocation mode is local
Last OS error: Invalid argument
Current file position is 169
GPL Ghostscript 9.16: Unrecoverable error, exit code 1
--- Warning --- System return: 256
Entering q.css
Entering q.tmp
This code used to work fine. From other examples I suspect that the problem has something to do with dvips
having trouble determining the bounding box for the image (compare with Cannot determine size of graphic -- although the solution given here, of using separate files for each image, is not a viable solution for me), but I have not been able to work out what the problem is.
Does anyone have any ideas?