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?



make4ht, it is making my life much easier! (I'm cleaning up a package that I have for converting latex files into html quizzes and your code is letting me supportpstricksimages in the quizzes.) – Mar 09 '17 at 01:02svgsupport intex4htin the meantime, so it should work even without.mk4file now. – michal.h21 Mar 09 '17 at 11:07\ConfigureEnv{psmatrix}{\Picture*{}}{\EndPicture}{}{} \Configure{Picture}{.svg}in mycfgfile and run this through tex4ht/make4ht. If this fix in texlive2016? – Mar 12 '17 at 13:26tex4htusesdvisvgmfor conversion whensvgpictures are requested now. – michal.h21 Mar 12 '17 at 16:10mk4file to defineMake:image. – Jan 23 '19 at 07:39\Configurewith thepspictureenvironment rather than thepsmatrixenvironment. If I do this then my example compiles again. – Jan 23 '19 at 08:07pstricksin December, I think it should work now without a need for configurations. – michal.h21 Jan 23 '19 at 09:01