On 05/03/14 23:39, GregExp wrote: > thank you for your help. > The file I sended was make with > > groff -me -k -t foo > foo.pdf
And therein lies your problem: simply naming the file "foo.pdf" does not magically make it a PDF file; it remains an improperly named PS file, (because groff's default output format is PS). To create a PDF directly, you must: - add the -Tpdf output specification option, or - use the pdfroff wrapper command, rather than groff directly, or - convert the PS output to PDF, after the event... > but I got a very good solution with > > ps2pdf foo.ps ...as you do with this, (which is basically what pdfroff does, although it uses GhostScript in a more direct manner). A further advantage of using pdfroff is that it will automatically handle the multiple groff passes required to resolve pdfmark cross references, if you use the -mpdfmark macro set. I don't know if -Tpdf will provide a similar level of support; perhaps Deri could comment? -- Regards, Keith.