[Top][All Lists]

[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.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.pdf
    execve("/usr/bin/convert", ["convert", "", "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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]