On 4/23/13 3:34 PM, Doug McIlroy wrote:
Is there a tool or trick for getting encapsulated postscript from pic?
What I want is that the bounding box should have origin 0 0 and
be just big enough to cover the picture.

Doug McIlroy



I have this in my Makefile...

.ms.eps:
        ${GROFF} -stp -ms -dpaper=${PAGE} -P-b16 $< > $*.ps
        ${GS} -dNOPAUSE -sDEVICE=bbox -- $*.ps 2>$*.bbox
${SED} -e "/^%%Orientation/r $*.bbox" -e "/^%\!PS-Adobe-3.0/s/$$/ EPSF-3.0/" $*.ps > $*.eps
        rm $*.bbox


... seems to do the trick.

Louis


Reply via email to