groff
[Top][All Lists]
Advanced

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

[Groff] Re: groff + pdf


From: Werner LEMBERG
Subject: [Groff] Re: groff + pdf
Date: Thu, 04 Jan 2001 10:22:21 +0100 (CET)

> does a converter exist from groff output to pdf (eg, gropdf)?

No.  IIRC, you can directly embed PDF control commands into the
created PS file (using grops) before using Adobe distiller or
GhostScript to convert to PDF.

Another route is troff -> grodvi -> dvipdfm, using the \X'...'
construct in the troff source file to embed \special commands for
manipulation of the PDF file (e.g., selecting colors, hyperlinks,
etc.):

You can get the latest version of dvipdfm from

  http://odo.kettering.edu/dvipdfm

A recent web2c distribution (e.g. teTeX) is needed also.


Here an example file `foo':


.de red
\X'pdf:bc [0.8 0.5 0]'\c
\&\\$1\c
\X'pdf:ec'\c
\&\\$2
..
.
This is a
.red test .


Say

  groff -Tdvi foo > foo.dvi
  dvipdfm foo

toget foo.pdf


     Werner

reply via email to

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