[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Groff to pdf/Windows

From: Keith Marshall
Subject: Re: [Groff] Groff to pdf/Windows
Date: Thu, 06 Mar 2014 09:21:57 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 05/03/14 23:39, GregExp wrote:
> thank you for your help.
> The file I sended was make with
> groff -me -k -t foo > foo.pdf

And therein lies your problem: simply naming the file "foo.pdf" does not
magically make it a PDF file; it remains an improperly named PS file,
(because groff's default output format is PS).  To create a PDF
directly, you must:

- add the -Tpdf output specification option, or
- use the pdfroff wrapper command, rather than groff directly, or
- convert the PS output to PDF, after the event...

> but I got a very good solution with
> ps2pdf you do with this, (which is basically what pdfroff does, although
it uses GhostScript in a more direct manner).

A further advantage of using pdfroff is that it will automatically
handle the multiple groff passes required to resolve pdfmark cross
references, if you use the -mpdfmark macro set.  I don't know if -Tpdf
will provide a similar level of support; perhaps Deri could comment?


reply via email to

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