groff
[Top][All Lists]
Advanced

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

Re: Groff macro to make .UR and .UE links clickable in PDF?


From: B 9
Subject: Re: Groff macro to make .UR and .UE links clickable in PDF?
Date: Fri, 19 Jun 2020 13:45:14 -0700
User-agent: s-nail v14.9.11

> This is my output (diff to your output follows):

Thank you, Jan Stary. I am a bit confused because the intermediate
output you sent doesn't have any PDF hypertext information in it.

When I use 'gropdf' to parse it, the links aren't clickable. Same when
I paste it into https://rawgit.com/Alhadis/Roff.js/web-demo/index.html.

What output do you get from 'groff -V -mdoc -Tpdf'? For me, I see
'troff -mdoc -Tpdf | gropdf'. Also, what's your version of gropdf?

    $ gropdf --version
    GNU gropdf (groff) version 1.22.4

I had expected your intermediate output using groff -Z to include
"x X pdf: mark...", but it didn't. (See an example below). So, the
mystery deepens: is groff adding in hypertext in the postprocessor
stage? How?

--b9

P.S. Here's an example of groff intermediate output that gropdf and
Roff.js correctly turn into hyperlinks.

x T pdf
x res 72000 1 1
x init
p1
V12000
H72000
x font 5 TR
f5
s10000
V12000
H72000
mr 22937 0 39321
DFd
x X pdf: markstart 6830 -140 2000 /Subtype /Link /Action << /Subtype /URI /URI 
(https://www.oeaw.ac.at/kal/agm/) >> /Border [0 0 0] /Color  [0.35 0.00 0.60]
tAncient
wh2500
tGreek
wh2500
tMelodies
V12000
H170310
x X pdf: markend
n12000 0
x trailer
V792000
x stop




reply via email to

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