Hi Pierre, What I meant was that PDF features like hyperlinks and navigation menus can be achieved using a standard PostScript interpreter—you don't need a dedicated *roff-to-PDF converter if your Troff of choice already supports high-quality PostScript output.
Moreover, the PostScript code I gave was purely illustrative. If you're interested in learning more about the syntax, the definitive reference is here: https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdfmark_reference.pdf#G7.1500796 (Note that I've linked you directly to the relevant section using the feature in question). Cheers, — John On Sun, 1 Nov 2020 at 23:32, Pierre-Jean Fichet < pierrejean.fic...@posteo.net> wrote: > > Hello John, > > Thank you for the help. > > John Gardner <gardnerjo...@gmail.com> wrote: > > > It will work when using neatpost and ps2pdf. Neatpdf is great, but as > > > far as I know, it does not support pdf links yet. > > > > It doesn't have to. You can embed PDF-specific features by using > PostScript's > > pdfmark operator > > <https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdfmark > reference.pdf>, > > supported in nearly every PostScript interpreter since the conception of > > PDF. The PostScript code looks like this: > > > > [ /Dest /revision-note > > /Rect [358632 -248700 361632 -239700] > > /Color [0 0 1] > > /BS << /S/U/W 0.1 >> > > /Subtype /Link > > /ANN pdfmark > > > I'm using the \X'link ...' shortcut, translated to the following > sequence by neatpdf: > > 12 0 obj > << > /Type /Annot > /Subtype /Link > /Rect [138.20 554.00 259.00 564.00] > /A << /S /URI /URI (#1.0.3.0) >> > >> > endobj > > Links starting with a "#" are considered as internal ones when using > neatpost. On pdfs produced by neatpdf, the link is recognized, but as > an external one. My pdf viewer tries to launch a browser rather than > pointing to the reference in the document. > > I guess it's the anchoring system which is not working, but I did not > investigate more. For information, utmac is using the following > postscript sequence to insert the needed anchor: > > \X"ps [ /Dest /1.0.3.0 /DEST pdfmark" > > Warm regards, > Pierre-Jean. > >