~royniang/lib

ref: 7b41e484cd650986491405751846a4780878b74b lib/bin/pdf -rwxr-xr-x 193 bytes
7b41e484roy niang Some improvement and safety measures. 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/rc
ppi=157

if(~ $#* 0){
	echo 'Usage: pdf [file] [page]'
	exit
}

d=$1

if(~ $#2 1){
	p=$2
	window -cd `{pwd} page -R -p $ppi -j $d!$p $d
}
if not
	window -cd `{pwd} page -R -p $ppi $d