3 # Script to make drag and drop in KDE possible
12 # Determine the temp directory
13 if [ -d "$TMPDIR" ] && [ -w "$TMPDIR" ]
16 elif [ -d "$TEMP" ] && [ -w "$TEMP" ]
22 out_file
=$tmp_dir"/antiword.$$.ps"
23 err_file
=$tmp_dir"/antiword.$$.err"
25 # Determine the paper size
29 # Make the PostScript file
30 antiword
-p $paper_size "$@" 2>$err_file >$out_file
37 # Show the PostScript file
38 gv
$out_file -nocentre -media $paper_size
41 rm -f $out_file $err_file