[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] Re: paper size of PS output
From: |
Steve M. Robbins |
Subject: |
[Groff] Re: paper size of PS output |
Date: |
Sat, 18 Oct 2003 18:24:27 -0400 |
User-agent: |
Mutt/1.5.4i |
Hi,
Daniele F writes:
> On Fri, Oct 10, 2003 at 11:11:58AM -0400, Steve M. Robbins wrote:
>
> > I have run groff on the simple 2-line file indicated, and verified that
> > the output in "gv" selects A4. However, I can't see anything in the PS
> > file that looks like page size selection.
>
> Look at line with %%DocumentMedia, page size is in points.
There is no such line output. Indeed, it is on the TODO list
(src/devices/grops/TODO) of groff 1.18.1:
Generate %%DocumentMedia comment.
> > Can anyone straighten us out? Is there a bug in groff, in our
> > configuration, or is it in our understanding of groff?
>
> Try to pass the papersize option directly to grops on cmd line, you
> can use the -P option of groff, say:
>
> echo "Something of something" | groff -P -p -P letter | less
>
> you should see that %%DocumentMedia is 612 792 (letter size)
Nope. I get the same output whether using these options or not.
address@hidden test.1 > a.ps
address@hidden -P -p -P letter test.1 > b.ps
address@hidden a.ps b.ps
--- a.ps 2003-10-18 18:22:33.000000000 -0400
+++ b.ps 2003-10-18 18:22:35.000000000 -0400
@@ -1,6 +1,6 @@
%!PS-Adobe-3.0
%%Creator: groff version 1.18.1
-%%CreationDate: Sat Oct 18 18:22:33 2003
+%%CreationDate: Sat Oct 18 18:22:35 2003
%%DocumentNeededResources: font Times-Roman
%%DocumentSuppliedResources: procset grops 1.18 1
%%Pages: 1
-Steve