From 7374906460c1973bb145fb32684f53e05bf6d51d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 26 Sep 2010 01:17:40 +0200 Subject: Better manual --- psresize2.pl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/psresize2.pl b/psresize2.pl index b0e6748..8045771 100755 --- a/psresize2.pl +++ b/psresize2.pl @@ -1,7 +1,7 @@ #!/usr/bin/perl -w -use Getopt::Long qw(:config no_ignore_case bundling); +use Getopt::Long qw(:config posix_default no_ignore_case bundling); use Pod::Usage; use IPC::Open2; use IPC::Open3; @@ -29,59 +29,59 @@ Conventions. =over 8 -=item B<-w,--width> +=item B<-w, --width> Specify the width of the output file. If the height is not specified as well, it will be ignored. The known units are B, B, B and B. The default unit is B. -=item B<-h,--height> +=item B<-h, --height> Specify the height of the output file. If the width is not specified as well, it will be ignored. The known units are B, B, B and B. The default unit is B. -=item B<-p,--paper> +=item B<-p, --paper> Specify the paper size of the output file, as an alternative to B<-w> and B<-h>. Can be set to B, B, B, B, B, B, B, B, B, B, B, B, B, B, or B<10x14>. The default output paper size is B. -=item B<-W,--Width> +=item B<-W, --Width> Same as the option B<-w>, but for the input file. -=item B<-H,--Height> +=item B<-H, --Height> Same as the option B<-h>, but for the input file. -=item B<-P,--paper> +=item B<-P, --paper> Same as the option B<-p>, but for the input file. By default, I will try to guess this value from the header of the file, and fail if the information is missing. This option is useless if the crop option (B<-c>) is set. -=item B<-r,rotdir> +=item B<-r, --rotdir> If the file has to be rotated, this option determines the direction of the rotation. Can be set to B, B, B, or B. The default direction is B. -=item B<-m,--margin> +=item B<-m, --margin> Add a margin to the output file. Possible units are B, B, B and B. The default unit is B. The default margin is B<1cm> if the crop option (B<-c>) is set, and B<0> otherwise. -=item B<-c,--crop> +=item B<-c, --crop> If this option is set, I will interpret the PostScript code to calculate the maximal effective bounding box. This operation may be quite demanding for the CPU. -=item B<-q,--quiet> +=item B<-q, --quiet> I normally prints the page numbers of the pages output; this option suppresses this. @@ -190,7 +190,7 @@ if (defined $infile && $infile ne "-") { # TODO: no need to such an ugly auxiliary file? - $infile = "$tmpdir/psresize-stdin-" . int(rand 2**16) . "ps"; + $infile = "$tmpdir/psresize-stdin-" . int(rand 2**16) . ".ps"; open FIN2, '>', "$infile" or die "Can't write into `$infile': $!"; @@ -484,7 +484,7 @@ sub papersize { # -# Print a command just like you'd do it in a shell +# Print a command just like you'd do in a shell # sub printcmd { my @cmd; -- cgit v1.2.3