You are not logged in.

#1 2016-07-28 19:01:44

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

PDF Man Pages.

This script comes directly from johnraff.  I make NO claim to it being mine, john noticed I was using a script to put man pages into text files and opening them in a text editor - come characters are messed up that way but this is MUCH better!

convert man page to pdf & show in epdfview/evince/mupdf/etc

I call it: pman

#!/bin/bash
# oneliner from commandlinefu.com
# man -t $1 | ps2pdf - - | epdfview -
# bash script from johnraff
# pman filename
# convert man page to pdf & show in epdfview/evince/mupdf

file=$(mktemp)
man -t $1 | ps2pdf - $file

evince $file
#epdfview $file
#mupdf $file

rm $file
exit

And an example: 2016_07_28_15_59_11_Scrot11.jpg


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2 2016-07-28 19:31:13

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: PDF Man Pages.

WOW!!

This is fantastic.
I thank johnraff and Sector11   {)

pman.th.jpg

Offline

#3 2016-07-28 20:49:40

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: PDF Man Pages.

HEY!  No kissin' in public huh!  yikes lol lol

johnraff's pretty slick with bash scripts ... I use this one a lot.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4 2016-07-29 09:35:30

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: PDF Man Pages.

Sector11 wrote:

HEY!  No kissin' in public huh!  yikes lol lol

Well!
Then just as good.gif   cool

Offline

#5 2016-07-29 18:00:06

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: PDF Man Pages.

Hahahaha OK, you win!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB