I know that
man -t ls | open -f -a /Applications/Preview.app produce a pdf of the man page of the
But the pdf produced is in US Letter size (21.59 cm x 27.94 cm).
The man page of
man says that
-t option use internally
/usr/bin/groff -Tps -mandoc -c.
So, according the
groff man, I tried this for obtaining A4 size (21 cm x 29.7 cm) in the pdf (A4 size is widely used in Europe):
man -t ls | /usr/bin/groff -Tps -mandoc -c -P-pa4 | open -f -a /Applications/Preview.app.
I obtain the A4 size as desired, but the formatting is ugly (no bold, italic, characters doubled, underscored)...
How to have the good formatting (as in the first command) AND the right size (as in the later command)?