[Top][All Lists]

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

Re: Putting hyperlinks in a PDF document

From: Deri
Subject: Re: Putting hyperlinks in a PDF document
Date: Tue, 15 Nov 2022 18:35:35 +0000

On Tuesday, 15 November 2022 14:37:20 GMT G. Branden Robinson wrote:
> [adding Peter for a mom question]
> Hi Deri,
> At 2022-11-15T13:43:49+0000, Deri wrote:
> > It's a bug, try this work-around:-
> > 
> > groff -Tpdf -mm -dpaper=letterl -rW=9i -P-p8.5i,11i > \
> > 
> >   hyperlink.pdf
> Interesting!  Any idea what's going on here with the changed page
> dimensions making the hyperlink inoperable?  I haven't yet scrutinized
> the device-independent output ("grout") to chase this down myself.

Hi Branden,

It is, as oliver correctly surmised, the coordinates of "hot zone" has not 
been rotated in line with the paper rotation. You can find the hotspot just 
under the first paragraph, near the start of the line, oriented downwards. The 
reason my work around works is because there is no rotation, it is passing 
gropdf a page size which is wider than its length. Incidentally using 
\X'papersize ..." you can mix portrait and landscape in the same document.



> I will note that the idiomatic--or at least historical--way to set the
> page length for the mm(7) macro package is via the `L` register on the
> command line;[1] so, for this example, we might say `-rL=8.5i`.
> However, that is not necessary in groff; the "papersize.tmac" package,
> automatically loaded by "troffrc" for all typesetter devices,[2] uses
> the `pl` request to set the page length in the formatter and when the
> macro package loads, it computes the placement of its page location
> traps based on that.
> I observe that the same thing is done for the line length, but only for
> ms(7), mdoc(7), and man(7).[3]  It seems like it might be a good idea to
> do it for me(7) and mm(7) as well.
> Peter, is there something "papersize.tmac" could be doing to help out
> mom(7) here?  We'd then have that macro file wired up to all of our
> full-service macro packages.
> Regards,
> Branden
> [1]
> [2] groff 1.22.4 loads it for _all_ devices, but groff 1.23.0 will not
>     do so for terminal devices.[4]
> [3]
> 6ef46ce4f032c31d9dd3cb32081af85afd08e#n149 [4]

reply via email to

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