App-12567834
view release on metacpan or search on metacpan
#!/usr/bin/perl
use 5.034 ; use warnings ;
use Time::HiRes qw [ gettimeofday tv_interval ] ;
my ${ dt_start } = [ gettimeofday ] ;
use Encode qw[ decode_utf8 encode_utf8 ] ;
use Getopt::Std ; getopts ',c:2:b:p' , \my %o ;
use Term::ANSIColor qw[ color :constants ] ; $Term::ANSIColor::AUTORESET = 1 ;
use FindBin qw[ $Script ] ;
use List::Util qw[ min max uniq ] ;
use utf8 ;
use Scalar::Util qw[ looks_like_number ] ;
no warnings ;
* d3 = sub { $_[0] =~ s/(?<=\d)(?=(\d\d\d)+($|\D))/,/gr } ;
use warnings ;
$ARGV[0] //= 8 ;
$o{c} //= 100 ; # ããã¼ã¸æå®ãå仿大æååé·ã
$o{b} //= 1 ;
# å
¥åãã¡ã¤ã«ããããAdobeçæãããã¨ãã«ããã¼ã¸ãµã¤ãºã¨å¦çãã§ãè¤æ°ãã®æå®ãåãããã¨ã ã£ãã¨ãã«
use FindBin qw[ $Script ] ;
$ARGV[1] //= '' ;
open my $FH , '<' , $0 ;
while(<$FH>){
s/\$0/$Script/g ;
print $_ if s/^=head1// .. s/^=cut// and $ARGV[1] =~ /^o(p(t(i(o(ns?)?)?)?)?)?$/i ? m/^\s+\-/ : 1;
}
close $FH ;
exit 0 ;
}
=encoding utf8
=head1 $0
12567834 NUMBER_OF_PAGES
12567834 N1 N2
12567834 N1-N2
NUMER_OF_PAGES ã¯ãåºåãããå
ã®PDFãã¡ã¤ã«ã®ãã¼ã¸æ°ã§ããã1å§ã¾ããä»®å®ã
N1 㨠N2 ã¯ãæåã®ãã¼ã¸çªå· 㨠æå¾ã®ãã¼ã¸çªå·ã§ããã
Adobe Acrobat Reader çã®ã½ããã¦ã§ã¢ã§ PDFãã¡ã¤ã«ã®ãå°ååãå°å·ãããæã«ã
12567834.pm view on Meta::CPAN
package App::12567834 ;
our $VERSION = '0.022' ;
our $DATE = '2025-04-17T20:00+09:00' ;
=encoding utf8
=head1 NAME
App::12567834 - Adobeçã®ã½ããã§å°ååå°å·ã®ãã¼ã¸æå®æã«ã1æå°å·ãããã¨ã«å
ã®PDFããé ã«4ãã¼ã¸ãã¤ã«ãªãããã«ããã
When specifying pages for booklet printing in software such as Adobe,
arrange the pages so that every printed sheet contains four pages
from the original PDF in sequential order.
=head1 SYNOPSIS
( run in 0.466 second using v1.01-cache-2.11-cpan-49f99fa48dc )