| line |
true |
false |
branch |
|
93
|
0 |
167 |
if defined $font_args->{'line_height'} |
|
97
|
1 |
166 |
if ($cfg->{'page_header'}) |
|
100
|
1 |
166 |
if ($cfg->{'page_footer'}) |
|
123
|
16 |
130 |
$hdr_args ? : |
|
124
|
11 |
135 |
$ftr_args ? : |
|
142
|
2 |
144 |
if ($bg and $bg ne "#fff" and $bg ne "#ffffff") |
|
157
|
1 |
3 |
unless $num >= 1 and $num <= scalar @$pages |
|
165
|
1 |
3 |
unless $p |
|
173
|
1 |
1 |
$p ? : |
|
179
|
1 |
1 |
$p ? : |
|
185
|
1 |
1 |
$p ? : |
|
191
|
6 |
1 |
$p ? : |
|
197
|
1 |
1 |
$p ? : |
|
203
|
1 |
1 |
$p ? : |
|
209
|
1 |
1 |
$p ? : |
|
215
|
1 |
1 |
$p ? : |
|
221
|
1 |
3 |
unless $p |
|
222
|
2 |
1 |
if defined $x |
|
223
|
2 |
1 |
if defined $y |
|
230
|
1 |
2 |
unless $p |
|
249
|
1 |
13 |
if ($p) |
|
259
|
1 |
6 |
if ($p) |
|
269
|
2 |
0 |
if $p |
|
277
|
2 |
0 |
if $p |
|
302
|
3 |
349 |
if ($defaults->{'font'}) |
|
310
|
360 |
2 |
unless XXX |
|
312
|
0 |
2 |
unless $tree |
|
314
|
0 |
2 |
@$stack ? : |
|
322
|
360 |
2 |
unless XXX |
|
324
|
2 |
0 |
if @$stack |
|
401
|
1 |
2 |
if (ref $line eq 'HASH') { } |
|
510
|
3 |
7 |
if ($parent_key and $outlines->{$parent_key}) { } |
|
532
|
10 |
10 |
if (defined $args{'on_page'}) { } |
|
535
|
1 |
9 |
unless $all and $idx >= 0 and $idx < @$all |
|
539
|
0 |
10 |
unless $target_builder_page |
|
543
|
16 |
3 |
if ($args{'rect'}) { } |
|
|
3 |
0 |
elsif (defined $args{'x'} or defined $args{'y'} or defined $args{'w'} or defined $args{'h'}) { } |
|
547
|
1 |
2 |
unless defined $args{'x'} and defined $args{'y'} and defined $args{'w'} and defined $args{'h'} |
|
562
|
3 |
15 |
if ($args{'url'}) { } |
|
|
12 |
3 |
elsif (defined $args{'page'}) { } |
|
|
1 |
2 |
elsif ($args{'action'}) { } |
|
|
1 |
1 |
elsif ($args{'file'}) { } |
|
577
|
17 |
0 |
if ($annot_num) |
|
579
|
9 |
8 |
if (defined $args{'on_page'}) { } |
|
582
|
0 |
9 |
unless $page_obj |
|
597
|
4 |
6 |
if (exists $args{'lines'} or exists $args{'text'} and ref $args{'text'} eq "ARRAY") |
|
609
|
1 |
3 |
unless $cur |
|
612
|
1 |
2 |
if (defined $args{'y'}) { } |
|
625
|
1 |
6 |
ref $line eq 'HASH' ? : |
|
629
|
1 |
6 |
$italic ? : |
|
651
|
2 |
3 |
if (defined $target) { } |
|
653
|
1 |
1 |
unless $target >= 0 and $target < scalar @$ps |
|
657
|
0 |
3 |
unless my $cur = XXX |
|
662
|
4 |
0 |
if $annot_num |
|
670
|
3 |
4 |
if (exists $args{'text'}) |
|
682
|
1 |
2 |
unless $cur |
|
685
|
1 |
1 |
if (defined $args{'y'}) { } |
|
692
|
0 |
2 |
$border ? : |
|
760
|
0 |
1 |
if $bp->imported |
|
764
|
0 |
1 |
if $hdr |
|
765
|
0 |
1 |
if $ftr |
|
766
|
0 |
1 |
$rewrite && @{$bp->redactions;} ? : |
|
772
|
0 |
1 |
if (XXX) |
|
780
|
0 |
1 |
if ($form) |
|
823
|
1 |
1 |
if defined $args{'visible'} |
|
826
|
2 |
0 |
if ($cur) |
|
840
|
0 |
1 |
unless $cur |
|
848
|
0 |
1 |
unless $cur |
|
859
|
0 |
6 |
unless $page_index >= 0 and $page_index < scalar @$ps |
|
867
|
0 |
6 |
unless my $rect = $args{'rect'} |
|
870
|
0 |
6 |
if $w <= 0 or $h <= 0 |
|
896
|
4 |
2 |
if (defined $text and length $text) |
|
901
|
0 |
4 |
if $tw > $w - 4 |
|
934
|
0 |
1 |
unless $reds and @$reds |
|
948
|
0 |
2 |
if $w <= 0 or $h <= 0 |
|
957
|
0 |
2 |
unless defined $text and length $text |
|
964
|
0 |
2 |
if $tw > $w - 4 |
|
984
|
2 |
2 |
if ($type eq 'sRGB') { } |
|
|
1 |
1 |
elsif ($type eq 'separation') { } |
|
1034
|
24 |
0 |
unless (defined $raw_mode) |
|
1035
|
9 |
15 |
exists $args{'rect'} || exists $args{'x'} || exists $args{'y'} ? : |
|
1038
|
15 |
9 |
unless ($raw_mode) |
|
1039
|
0 |
15 |
if (exists $args{'default'} and not exists $args{'default_value'}) |
|
1049
|
7 |
2 |
unless defined $default |
|
1052
|
0 |
9 |
unless $cur |
|
1055
|
8 |
1 |
if ($args{'rect'}) { } |
|
1062
|
0 |
1 |
if (defined $args{'y'}) { } |
|
1070
|
0 |
9 |
unless defined $x and defined $y and defined $w and defined $h |
|
1082
|
3 |
6 |
if defined $default |
|
1084
|
1 |
0 |
$args{'readonly'} ? : |
|
|
1 |
8 |
if exists $args{'readonly'} |
|
1085
|
1 |
0 |
$args{'required'} ? : |
|
|
1 |
8 |
if exists $args{'required'} |
|
1086
|
1 |
8 |
if exists $args{'da'} |
|
1089
|
2 |
7 |
if exists $args{'options'} |
|
1090
|
1 |
8 |
if exists $args{'caption'} |
|
1091
|
0 |
9 |
if exists $args{'on_value'} |
|
1120
|
0 |
5 |
$cur ? : |
|
1122
|
4 |
1 |
unless exists $args{'page_index'} |
|
1134
|
114 |
0 |
if ($cur) |
|
1136
|
5 |
109 |
if ($t and @{$t->entries;}) |
|
1146
|
34 |
124 |
if ($bp->imported) |
|
1152
|
0 |
34 |
if (defined $overlay and length $overlay) |
|
1161
|
17 |
107 |
if ($hdr) |
|
1164
|
12 |
112 |
if ($ftr) |
|
1170
|
1 |
123 |
$rewrite && @{$bp->redactions;} ? : |
|
1176
|
1 |
113 |
if (XXX) |
|
1183
|
1 |
113 |
if ($wms and @$wms) |
|
1192
|
2 |
112 |
if (XXX) |
|
1195
|
2 |
0 |
if $form |
|
1202
|
6 |
108 |
if ($form) |
|
1210
|
5 |
109 |
if ($enc) |
|
1225
|
0 |
1 |
if ($sig and $sig->{'pkcs12'} and -f $sig->{'pkcs12'}) |
|
1230
|
0 |
0 |
unless $identity and $identity->can_sign |
|
1253
|
0 |
114 |
unless $fname =~ /\.pdf$/i |
|
1255
|
114 |
0 |
if (defined $dir and length $dir and $dir ne ".") |
|
1256
|
0 |
114 |
unless -d $dir |
|
1258
|
0 |
114 |
if (defined $signed_bytes) { } |
|
1259
|
0 |
0 |
unless open my $fh, ">:raw", $fname |
|
1292
|
1 |
2 |
$args{'invisible'} ? : |
|
|
3 |
51 |
exists $args{'invisible'} ? : |
|
1297
|
3 |
51 |
if ($reader->is_encrypted and not $reader->is_authenticated) |
|
1300
|
0 |
3 |
if $rc < 0 |
|
1313
|
0 |
2 |
if ($reader->is_encrypted and not $reader->is_authenticated) |
|
1316
|
0 |
0 |
if $rc < 0 |
|
1320
|
2 |
0 |
wantarray ? : |
|
1329
|
0 |
2 |
if ($reader->is_encrypted and not $reader->is_authenticated) |
|
1332
|
0 |
0 |
if $rc < 0 |
|
1336
|
2 |
0 |
wantarray ? : |
|
1347
|
0 |
11 |
unless -f $file |
|
1362
|
1 |
25 |
unless -f $file |
|
1368
|
5 |
20 |
if ($reader->is_encrypted and not $reader->is_authenticated) |
|
1371
|
1 |
4 |
if $rc < 0 |
|
1379
|
3 |
21 |
$args{'pages'} ? : |
|
1382
|
1 |
44 |
unless $idx >= 0 and $idx < $count |
|
1387
|
0 |
44 |
unless ($ok) |
|
1420
|
0 |
1 |
unless @inputs |
|
1435
|
0 |
3 |
unless $index >= 0 and $index < scalar @$ps |
|
1443
|
2 |
1 |
if (scalar @$ps) { } |
|
1454
|
0 |
1 |
unless $from >= 0 and $from < scalar @$ps |
|
1455
|
0 |
1 |
unless $to >= 0 and $to < scalar @$ps |
|
1468
|
0 |
1 |
unless $index >= 0 and $index < scalar @$ps |
|
1504
|
0 |
4 |
unless $index >= 0 and $index < scalar @$ps |
|
1506
|
0 |
4 |
unless grep {$degrees == $_;} 0, 90, 180, 270 |
|
1510
|
3 |
1 |
if ($degrees == 90 or $degrees == 270) |
|
1529
|
0 |
0 |
if ($cur) |