| line |
true |
false |
branch |
|
142
|
0 |
0 |
unless defined $input |
|
144
|
0 |
0 |
if print STDERR "$sayHelp" |
|
|
0 |
0 |
if ($input =~ /^-h$/ or $input =~ /^--help$/) |
|
146
|
0 |
0 |
if print STDERR "$sayVersion\n" |
|
|
0 |
0 |
if ($input =~ /^-v$/ or $input =~ /^--version$/) |
|
148
|
0 |
0 |
unless -r $input |
|
151
|
0 |
0 |
if $inpPgNum == 0 |
|
156
|
0 |
0 |
if ($_ eq 'A6') { } |
|
|
0 |
0 |
elsif ($_ eq 'A5') { } |
|
|
0 |
0 |
elsif ($_ eq 'QT') { } |
|
|
0 |
0 |
elsif ($_ eq 'QG') { } |
|
|
0 |
0 |
elsif ($_ eq 'HT') { } |
|
|
0 |
0 |
elsif ($_ eq 'HG') { } |
|
|
0 |
0 |
elsif ($_ eq 'LT') { } |
|
|
0 |
0 |
elsif ($_ eq 'A4') { } |
|
170
|
0 |
0 |
if ($pgPerOutputPage == 4) { } |
|
173
|
0 |
0 |
if ($_ >= 13) { } |
|
|
0 |
0 |
elsif ($_ >= 9) { } |
|
|
0 |
0 |
elsif ($_ >= 5) { } |
|
181
|
0 |
0 |
if ($_ >= 13) { } |
|
|
0 |
0 |
elsif ($_ >= 9) { } |
|
|
0 |
0 |
elsif ($_ >= 5) { } |
|
191
|
0 |
0 |
if $_ % $pgPerOutputPage == 0 |
|
193
|
0 |
0 |
if $target_page > $inpPgNum |
|
195
|
0 |
0 |
$_ % 4 > 1 ? : |
|
199
|
0 |
0 |
if $numPagImposed == $inpPgNum |
|
212
|
0 |
0 |
unless $Gpos |
|
213
|
0 |
0 |
if $Gstream |
|
226
|
0 |
0 |
unless $Gpos |
|
228
|
0 |
0 |
unless my $pagenumber = $param->{'page'} |
|
229
|
0 |
0 |
unless my $x = $param->{'x'} |
|
230
|
0 |
0 |
unless my $y = $param->{'y'} |
|
231
|
0 |
0 |
unless my $rotate = $param->{'rotate'} |
|
238
|
0 |
0 |
unless defined $refNr |
|
240
|
0 |
0 |
unless $refNr |
|
265
|
0 |
0 |
if (%GpageXObject) |
|
283
|
0 |
0 |
if exists $resources{$resourceDict} |
|
286
|
0 |
0 |
if keys %resources < 10 |
|
321
|
0 |
0 |
unless ($Gparents[0]) |
|
330
|
0 |
0 |
if $Gcounts[0] > 9 |
|
338
|
0 |
0 |
unless $Gpos |
|
340
|
0 |
0 |
if $Gstream |
|
372
|
0 |
0 |
unless ($Gparents[$j]) |
|
403
|
0 |
0 |
defined $Gparents[0] ? : |
|
405
|
0 |
0 |
if (defined $Gparents[$i]) |
|
409
|
0 |
0 |
if ($Gparents[$j]) |
|
440
|
0 |
0 |
if ($rotate) |
|
459
|
0 |
0 |
if $buf =~ /Encrypt/ |
|
462
|
0 |
0 |
if ($buf =~ m[/Prev\s+\d]) { } |
|
|
0 |
0 |
elsif ($buf =~ /\bstartxref\s+(\d+)/) { } |
|
480
|
0 |
0 |
if $xref > (stat $GinFile)[7] |
|
483
|
0 |
0 |
unless $tempRoot |
|
497
|
0 |
0 |
if $readBytes =~ /^\s?(\d{10}) \d{5} n/ |
|
515
|
0 |
0 |
if ($readBytes =~ /^(xref$cr)/) { } |
|
|
0 |
0 |
elsif ($readBytes =~ /^\d+\s+\d+\s+obj/i) { } |
|
536
|
0 |
0 |
if $buf =~ m[\/Root\s+(\d+)\s+\d+\s+R]s |
|
547
|
0 |
0 |
unless defined $GObjects{$index} |
|
565
|
0 |
0 |
if ($objectContent =~ /^(\d+ \d+ obj\s*<<)(.+)(>>\s*stream)/s) { } |
|
572
|
0 |
0 |
if $objectContent =~ /^(\d+ \d+ obj\s*)/s |
|
592
|
0 |
0 |
unless $objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]s |
|
594
|
0 |
0 |
unless $objectContent =~ /MediaBox/s |
|
597
|
0 |
0 |
unless defined $GmediaBox[2] and defined $GmediaBox[3] |
|
604
|
0 |
0 |
if (alike($_, $Gpaper{'QuarterLetter'})) |
|
605
|
0 |
0 |
if (alike($_, $Gpaper{'A6'})) |
|
606
|
0 |
0 |
if (alike($_, $Gpaper{'HalfLetter'})) |
|
607
|
0 |
0 |
if (alike($_, $Gpaper{'QuarterLegal'})) |
|
608
|
0 |
0 |
if (alike($_, $Gpaper{'A5'})) |
|
609
|
0 |
0 |
if (alike($_, $Gpaper{'HalfLegal'})) |
|
610
|
0 |
0 |
if (alike($_, $Gpaper{'Letter'})) |
|
611
|
0 |
0 |
if (alike($_, $Gpaper{'A4'})) |
|
612
|
0 |
0 |
if (alike($_, $Gpaper{'Legal'})) |
|
613
|
0 |
0 |
if (alike($_, $Gpaper{'Tabloid'})) |
|
624
|
0 |
0 |
if $hxw > $namedHxw + $tolerance or $hxw < $namedHxw - $tolerance |
|
639
|
0 |
0 |
unless $objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]s |
|
681
|
0 |
0 |
unless $objectContent =~ m(/Kids\s*\[([^\]]+))s |
|
692
|
0 |
0 |
if ($objectContent =~ m[/Count\s+(\d+)]s) { } |
|
693
|
0 |
0 |
if ($pageAccumulator + $1 < $pagenumber) { } |
|
696
|
0 |
0 |
if $objectContent =~ m(/Kids\s*\[([^\]]+))s |
|
703
|
0 |
0 |
if $pageAccumulator == $pagenumber |
|
717
|
0 |
0 |
unless (@GmediaBox) |
|
719
|
0 |
0 |
if (/MediaBox\s*\[\s*([\S]+)\s+([\S]+)\s+([\S]+)\s+([\S]+)\s*\]/s) { } |
|
|
0 |
0 |
elsif (/MediaBox\s*(\d+)\s+\d+\s+R\b/s) { } |
|
723
|
0 |
0 |
if $ref =~ /\[\s*([\S]+)\s+([\S]+)\s+([\S]+)\s+([\S]+)\s*\]/s |
|
729
|
0 |
0 |
if ($objContent =~ m[/Contents\s+(\d+)]s) { } |
|
|
0 |
0 |
elsif ($objContent =~ m(/Contents\s*\[\s*(\d+)\s+\d+\s+R\s*\])s) { } |
|
747
|
0 |
0 |
if ($objContent =~ m[^(.+/Resources)]s) |
|
748
|
0 |
0 |
if $objContent =~ /Resources\s+(\d+\s+\d+\s+R)/s |
|
755
|
0 |
0 |
if (/\S/s) |
|
757
|
0 |
0 |
if /<
|
|
758
|
0 |
0 |
if />>/s |
|
759
|
0 |
0 |
if $k == 0 |
|
772
|
0 |
0 |
unless eval {
do {
$objectContent = getObjectContent($GrootNr);
1
}
} |
|
773
|
0 |
0 |
if ($objectContent =~ m[/Pages\s+(\d+)\s+\d+\s+R]s) |
|
775
|
0 |
0 |
if $objectContent =~ m[/Count\s+(\d+)]s |
|
787
|
0 |
0 |
unless open $IN_FILE, "<", $GinFile |
|
792
|
0 |
0 |
if $c ne "%PDF-" |
|
796
|
0 |
0 |
unless $GrootNr > 0 |
|
829
|
0 |
0 |
if exists $known{$1} |
|
849
|
0 |
0 |
if $readBytes =~ /^(\d+)\s+(\d+)/ |
|
857
|
0 |
0 |
if $Gpos |
|
862
|
0 |
0 |
unless open $OUT_FILE, ">", $outputfile |