[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Groff to pdf/Windows
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] Groff to pdf/Windows |
Date: |
Tue, 04 Mar 2014 11:10:04 +0000 |
Hi Clarke,
> I've been using groff to create a PostScript file, then I use the
> Linux convert command:
>
> convert file.ps file.pdf
That's ImageMagick, which I always find poorly documented. It uses
Ghostscript behind the scenes so Ghostscript's ps2pdf(1) would let you
tinker with the options if you want.
$ strace -s 999 -fe execve convert foo.ps foo.pdf
execve("/usr/bin/convert", ["convert", "foo.ps", "foo.pdf"], ...) = 0
execve("/bin/sh", ["sh", "-c", "\"gs\" -q -dQUIET -dSAFER -dBATCH
-dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0
-dGridFitTT=2 \"-sDEVICE=pngalpha\" -dTextAlphaBits=4
-dGraphicsAlphaBits=4 \"-r72x72\" -g595x842
\"-sOutputFile=/tmp/magick-XXhRFN1i\" \"-f/tmp/magick-XXWb509m\"
\"-f/tmp/magick-XXPZMzir\""], ...) = 0
execve("/usr/bin/gs", ["gs", "-q", "-dQUIET", "-dSAFER", "-dBATCH",
"-dNOPAUSE", "-dNOPROMPT", "-dMaxBitmap=500000000",
"-dAlignToPixels=0", "-dGridFitTT=2", "-sDEVICE=pngalpha",
"-dTextAlphaBits=4", "-dGraphicsAlphaBits=4", "-r72x72",
"-g595x842", "-sOutputFile=/tmp/magick-XXhRFN1i",
"-f/tmp/magick-XXWb509m", "-f/tmp/magick-XXPZMzir"], ...) = 0
$
Cheers, Ralph.
- Re: [Groff] Groff to pdf/Windows, GregExp, 2014/03/03
- Re: [Groff] Groff to pdf/Windows, Clarke Echols, 2014/03/03
- Re: [Groff] Groff to pdf/Windows, Ralph Corderoy, 2014/03/04
- Re: [Groff] Groff to pdf/Windows, GregExp, 2014/03/05
- Re: [Groff] Groff to pdf/Windows, Keith Marshall, 2014/03/06
- Re: [Groff] Groff to pdf/Windows, Deri James, 2014/03/06
- Re: [Groff] Groff to pdf/Windows, Keith Marshall, 2014/03/06
- Re: [Groff] Groff to pdf/Windows, Deri James, 2014/03/06
- Re: [Groff] Groff to pdf/Windows, Keith Marshall, 2014/03/06
- Re: [Groff] Groff to pdf/Windows, Ralph Corderoy, 2014/03/06
- Re: [Groff] Groff to pdf/Windows, Deri James, 2014/03/06