line |
true |
false |
branch |
70
|
0 |
194 |
if ref $class |
80
|
0 |
194 |
if (defined $self->{'Parent'}{'UserUnit'}) { } |
85
|
0 |
0 |
if ($UU != 1) |
152
|
0 |
0 |
if (float($value) <= 0) |
174
|
29 |
98 |
if (scalar @corners and $corners[0] =~ /[a-z]/i) |
176
|
78 |
49 |
if (scalar @corners == 0) { } |
|
0 |
49 |
elsif (scalar @corners == 3) { } |
180
|
53 |
25 |
if (defined $self->{$box}) { } |
184
|
17 |
8 |
if (defined $pdf->{'pages'}{$box}) { } |
189
|
4 |
2 |
if ($box eq "ArtBox" or $box eq "TrimBox" or $box eq "BleedBox") |
192
|
8 |
0 |
if ($box eq "CropBox" and not defined $pdf->{'pages'}{'CropBox'}) |
195
|
0 |
8 |
if ($box ne "CropBox" and $box ne "MediaBox") |
207
|
0 |
0 |
if (defined $opts{'-orient'} and not defined $opts{'orient'}) |
210
|
0 |
0 |
if (defined $opts{'orient'}) |
211
|
0 |
0 |
if ($opts{'orient'} =~ /^l/i) |
224
|
29 |
20 |
if ($isName) |
226
|
0 |
29 |
if ($UU != 1) |
456
|
0 |
0 |
if ($degrees % 90) |
500
|
1 |
0 |
if (@_) { } |
656
|
0 |
6 |
if (ref $value eq "ARRAY") |
657
|
0 |
0 |
if (@$value == 2) { } |
|
0 |
0 |
elsif (@$value == 4) { } |
666
|
2 |
4 |
if ($value =~ /^([0-9.]+)\s*x\s*([0-9.]+)$/) |
668
|
2 |
0 |
if (&looks_like_number($w) and &looks_like_number($h)) |
676
|
4 |
0 |
if ($page_sizes{lc $value}) |
680
|
0 |
0 |
if (ref $value) { } |
691
|
0 |
6 |
if (@_ == 0) { } |
|
0 |
6 |
elsif (@_ == 1) { } |
710
|
22 |
8 |
unless exists $boxes{$box} |
718
|
2 |
6 |
if ($box ne 'media' and not ref $value and &looks_like_number($value)) { } |
719
|
2 |
0 |
$box eq 'trim' ? : |
|
0 |
2 |
$box eq 'bleed' ? : |
|
0 |
2 |
$box eq 'crop' ? : |
722
|
0 |
2 |
if $parent eq "trim" and not $boxes{'trim'} |
723
|
2 |
0 |
if $parent eq "bleed" and not $boxes{'bleed'} |
724
|
0 |
2 |
if $parent eq "bleed" and not $boxes{'bleed'} |
725
|
0 |
2 |
unless ($boxes{$parent}) |
752
|
4 |
4 |
unless (scalar @_) |
754
|
0 |
4 |
unless ($box) |
757
|
0 |
0 |
if $type eq "MediaBox" |
760
|
0 |
0 |
if $type eq "CropBox" |
775
|
0 |
161 |
if (ref($self->{'Contents'}) =~ /Objind$/) |
778
|
0 |
161 |
unless (ref($self->{'Contents'}) =~ /Array$/) |
787
|
0 |
154 |
if (defined $dir and $dir > 0) { } |
792
|
154 |
0 |
unless $obj->is_obj($self->{' apipdf'}) |
911
|
134 |
0 |
if (scalar @params == 0) { } |
|
0 |
0 |
elsif (scalar @params == 1) { } |
|
0 |
0 |
elsif (scalar(@params) % 2) { } |
923
|
0 |
0 |
if (defined $hash{'-prepend'} and not defined $hash{'prepend'}) |
924
|
0 |
0 |
if (defined $hash{'-compress'} and not defined $hash{'compress'}) |
926
|
0 |
0 |
if (defined $hash{'prepend'}) |
927
|
0 |
0 |
if (defined $hash{'compress'}) |
929
|
0 |
134 |
if ($prepend) |
934
|
0 |
134 |
if $compress |
994
|
20 |
0 |
if (scalar @params == 0) { } |
|
0 |
0 |
elsif (scalar @params == 1) { } |
|
0 |
0 |
elsif (scalar(@params) % 2) { } |
1006
|
0 |
0 |
if (defined $hash{'-prepend'} and not defined $hash{'prepend'}) |
1007
|
0 |
0 |
if (defined $hash{'-compress'} and not defined $hash{'compress'}) |
1009
|
0 |
0 |
if (defined $hash{'prepend'}) |
1010
|
0 |
0 |
if (defined $hash{'compress'}) |
1012
|
0 |
20 |
if ($prepend) |
1017
|
0 |
20 |
if $compress |
1057
|
1 |
5 |
exists $self->{'Annots'} ? : |
1073
|
1 |
5 |
if ($self->{'Annots'}->is_obj($self->{' apipdf'})) |
1104
|
0 |
32 |
if ref($dict) =~ /Objind$/ |
1107
|
0 |
32 |
if ref($dict->{$type}) =~ /Objind$/ |
1109
|
30 |
2 |
if (defined $obj) { } |
1112
|
0 |
30 |
if ($force) { } |
1118
|
0 |
30 |
if $dict->is_obj($self->{' apipdf'}) |
1119
|
0 |
30 |
if $dict->{$type}->is_obj($self->{' apipdf'}) |
1120
|
28 |
2 |
if $obj->is_obj($self->{' apipdf'}) |
1131
|
0 |
0 |
if (defined $self->{'Contents'}) |