groff
[Top][All Lists]
Advanced

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

Re: Groff on Windows (for PDF output)?


From: Robert Thorsby
Subject: Re: Groff on Windows (for PDF output)?
Date: Thu, 23 Jul 2020 07:26:21 +1000

On 23/07/20 07:12:14, Blake McBride wrote:
I am trying to get Groff working on Windows. I have looked at MinGW, GnuWin32, and ezwinports. While some provide base Groff, none I can see support -Tpdf. Is there any package that does support PDF output on Windows?

Good morning Blake,

You can produce PDF output from groff indirectly by piping the groff PS output into ps2pdf. I am assuming ghostscript and its utilities can be run on Windows.

On my Ubuntu system I often use commands such as:

groff -t -Tps -dpaper=a2 -P-pa2 input_file.gr |
  ps2pdf -sPAPERSIZE=a2 -sColorModel=LeaveColorUnchanged \
  -dPDFSETTINGS=/prepress -dEmbedAllFonts=true - output_file.pdf

HTH,
Robert


reply via email to

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