line |
true |
false |
branch |
69
|
6 |
0 |
if ($self->{'-docompress'} and $self->{'Filter'}) |
197
|
0 |
15 |
if (defined $opts{'-matrix'}) |
203
|
9 |
6 |
if (defined $opts{'skew'}) |
206
|
9 |
6 |
if (defined $opts{'scale'}) |
209
|
9 |
6 |
if (defined $opts{'rotate'}) |
212
|
12 |
3 |
if (defined $opts{'translate'}) |
217
|
0 |
15 |
if ($opts{'-point'}) |
235
|
1 |
15 |
if $options{'relative'} |
239
|
14 |
46 |
if (exists $options{"-" . $option}) |
261
|
4 |
4 |
if (exists $options{"-" . $option}) |
266
|
2 |
0 |
$options{'skew'} ? : |
269
|
2 |
0 |
$options{'scale'} ? : |
275
|
2 |
0 |
$options{'translate'} ? : |
315
|
26 |
0 |
if (scalar @_) |
317
|
3 |
23 |
if ($self->_in_text_object) { } |
327
|
3 |
23 |
if ($self->_in_text_object) { } |
358
|
0 |
11 |
if ($self->_in_text_object) |
382
|
0 |
11 |
if ($self->_in_text_object) |
453
|
0 |
2 |
if ($self->{' graphics'} and not @_) |
458
|
0 |
2 |
if $style eq "butt" |
459
|
1 |
1 |
if $style eq "round" |
460
|
0 |
2 |
if $style eq "square" |
462
|
0 |
2 |
unless ($style >= 0 and $style <= 2) |
463
|
0 |
0 |
if ($self->{' graphics'}) { } |
513
|
0 |
2 |
if ($self->{' graphics'} and not @_) |
518
|
0 |
2 |
if $style eq "miter" |
519
|
0 |
2 |
if $style eq "round" |
520
|
1 |
1 |
if $style eq "bevel" |
522
|
0 |
2 |
unless ($style >= 0 and $style <= 2) |
523
|
0 |
0 |
if ($self->{' graphics'}) { } |
604
|
7 |
3 |
unless (@options) |
608
|
3 |
0 |
if ($options[0] =~ /^\d/) |
615
|
0 |
0 |
if ($options{'-pattern'}) |
618
|
0 |
0 |
if ($options{'-shift'}) |
624
|
0 |
0 |
if (exists $options{'-full'} or exists $options{'-clear'}) |
710
|
0 |
107 |
if ($self->_in_text_object) { } |
741
|
0 |
96 |
if ($self->_in_text_object) { } |
765
|
0 |
2 |
if ($self->_in_text_object) { } |
785
|
0 |
1 |
if ($self->_in_text_object) { } |
805
|
0 |
2 |
unless (@_ % 2 == 0) |
848
|
0 |
78 |
if ($self->_in_text_object) { } |
898
|
68 |
76 |
if (abs $beta - $alpha > 30) { } |
936
|
3 |
1 |
if $move |
977
|
0 |
4 |
if $x < 0 and $y > 0 |
978
|
0 |
4 |
if $x < 0 and $y < 0 |
982
|
1 |
3 |
if $spf and $spf > 0 |
988
|
1 |
3 |
if $larc and $larc > 0 |
994
|
1 |
3 |
if ($spf and $spf > 0) |
1008
|
1 |
3 |
if $move |
1016
|
1 |
35 |
if (scalar @points == 0) { } |
1085
|
1 |
1 |
if ($x2 < $x1) |
1090
|
0 |
2 |
if ($y2 < $y1) |
1220
|
23 |
3 |
if ($clr[0] =~ /^[a-z\#\!]+/) { } |
|
2 |
1 |
elsif ($clr[0] =~ /^[\%]+/) { } |
|
0 |
1 |
elsif ($clr[0] =~ /^[\$\&]/) { } |
|
0 |
1 |
elsif (scalar @clr == 1 and ref $clr[0]) { } |
|
0 |
1 |
elsif (scalar @clr == 1) { } |
|
1 |
0 |
elsif (scalar @clr > 1 and ref $clr[0]) { } |
|
0 |
0 |
elsif (scalar @clr == 2) { } |
|
0 |
0 |
elsif (scalar @clr == 3) { } |
|
0 |
0 |
elsif (scalar @clr == 4) { } |
1224
|
14 |
9 |
$sf ? : |
1229
|
1 |
1 |
$sf ? : |
1234
|
0 |
0 |
unless (defined $self->resource("ColorSpace", "LabS")) |
1242
|
0 |
0 |
$sf ? : |
|
0 |
0 |
$sf ? : |
1246
|
0 |
0 |
$sf ? : |
|
0 |
0 |
$sf ? : |
1250
|
0 |
0 |
$sf ? : |
1256
|
0 |
1 |
$sf ? : |
|
0 |
1 |
$sf ? : |
1261
|
0 |
0 |
$sf ? : |
|
0 |
0 |
$sf ? : |
1265
|
0 |
0 |
$sf ? : |
1269
|
0 |
0 |
$sf ? : |
1278
|
0 |
15 |
if (ref($clrs[0]) =~ /^PDF::API2::Resource::ColorSpace/) { } |
|
0 |
15 |
elsif (ref($clrs[0]) =~ /^PDF::API2::Resource::Pattern/) { } |
1293
|
15 |
0 |
if (@_) |
1302
|
1 |
10 |
if (ref($clrs[0]) =~ /^PDF::API2::Resource::ColorSpace/) { } |
|
0 |
10 |
elsif (ref($clrs[0]) =~ /^PDF::API2::Resource::Pattern/) { } |
1316
|
11 |
0 |
if (@_) |
1372
|
1 |
2 |
if (@_ == 2) { } |
1374
|
1 |
0 |
if (($options{'rule'} // "nonzero") eq "even-odd") |
1383
|
2 |
1 |
$even_odd ? : |
1403
|
1 |
3 |
if (@_ == 2) { } |
1405
|
1 |
0 |
if (($options{'rule'} // "nonzero") eq "even-odd") |
1414
|
2 |
2 |
$even_odd ? : |
1433
|
1 |
2 |
if (@_ == 2) { } |
1435
|
1 |
0 |
if (($options{'rule'} // "nonzero") eq "even-odd") |
1444
|
2 |
1 |
$even_odd ? : |
1501
|
0 |
0 |
if ($object->isa('PDF::API2::Resource::XObject::Image')) { } |
1525
|
0 |
8 |
if (defined $img->{'Metadata'}) |
1529
|
8 |
0 |
defined $w ? : |
1543
|
0 |
8 |
if (defined $img->{'Metadata'}) |
1553
|
2 |
0 |
if (defined $s) { } |
1592
|
1 |
17 |
if ($font->isvirtual) { } |
1601
|
1 |
18 |
unless ($size) |
1616
|
1 |
17 |
if ($font->isvirtual) { } |
1646
|
3 |
1 |
if (defined $spacing) |
1678
|
15 |
10 |
if (defined $spacing) |
1702
|
2 |
12 |
if (defined $scale) |
1732
|
11 |
35 |
if (defined $leading) |
1774
|
1 |
0 |
if (defined $mode) |
1800
|
1 |
0 |
if (defined $distance) |
1811
|
0 |
0 |
if (@_) { } |
1814
|
0 |
0 |
unless $state{$k} |
1817
|
0 |
0 |
if ($state{'font'} and $state{'fontsize'}) |
1820
|
0 |
0 |
if ($state{'textmatrix'}) |
1827
|
0 |
0 |
if ($state{'fillcolor'}) |
1830
|
0 |
0 |
if ($state{'strokecolor'}) |
1873
|
0 |
59 |
if (defined $x and not defined $y) |
1877
|
1 |
58 |
if (defined $x) |
1898
|
2 |
1 |
if (defined $offset) { } |
1922
|
22 |
1 |
if ($leading or not $self->{' fontsize'}) { } |
2026
|
0 |
0 |
if (ref $underline eq 'ARRAY') { } |
2032
|
0 |
0 |
if @underline % 2 |
2044
|
0 |
0 |
if (ref $thickness) |
2047
|
0 |
0 |
if ($distance eq "auto") |
2050
|
0 |
0 |
if ($thickness eq "auto") |
2070
|
1 |
29 |
unless ($self->{' fontset'}) |
2071
|
1 |
0 |
unless (defined $self->{' font'} and $self->{' fontsize'}) |
2079
|
10 |
19 |
if (exists $opts{'-indent'}) |
2082
|
0 |
29 |
if (exists $opts{'-underline'}) |
2088
|
12 |
17 |
if (defined $opts{'align'}) |
2089
|
6 |
6 |
if ($opts{'align'} eq 'left') { } |
|
3 |
3 |
elsif ($opts{'align'} eq 'center') { } |
|
3 |
0 |
elsif ($opts{'align'} eq 'right') { } |
2103
|
12 |
17 |
if (defined $opts{'indent'}) |
2109
|
12 |
17 |
if (defined $opts{'indent'}) { } |
2122
|
0 |
29 |
if (defined $opts{'underline'}) |
2158
|
1 |
0 |
if $space_count |
2171
|
12 |
100 |
if $self->advancewidth(join($", @line)) > $width |
2173
|
12 |
7 |
if (scalar @line > 1 and $self->advancewidth(join($", @line)) > $width) |
2210
|
4 |
4 |
if ($ret) |
2211
|
4 |
0 |
if $space_count |
2218
|
3 |
1 |
if ($opts{'align-last'}) |
2219
|
0 |
3 |
unless ($opts{'align-last'} =~ /^(left|center|right|justified)$/) |
2224
|
1 |
3 |
if ($align_last eq 'left') { } |
|
1 |
2 |
elsif ($align_last eq 'center') { } |
|
1 |
1 |
elsif ($align_last eq 'right') { } |
2234
|
1 |
0 |
if $space_count |
2283
|
6 |
4 |
if (exists $opts{'-align'}) |
2286
|
3 |
7 |
if (exists $opts{'-align-last'}) |
2289
|
0 |
10 |
if (exists $opts{'-underline'}) |
2294
|
0 |
10 |
unless ($leading) |
2299
|
1 |
9 |
if ($text =~ /\n/) |
2303
|
0 |
3 |
if (length $overflow) |
2309
|
1 |
2 |
unless (length $line) |
2316
|
1 |
1 |
if length $line |
2319
|
0 |
1 |
if wantarray |
2326
|
2 |
19 |
if $height < 0 |
2329
|
8 |
11 |
if ($align eq 'justified') { } |
|
2 |
9 |
elsif ($align eq 'right') { } |
|
2 |
7 |
elsif ($align eq 'center') { } |
2344
|
2 |
7 |
if wantarray |
2358
|
0 |
0 |
if $opts{'-rotate'} |
2361
|
0 |
0 |
if ($wastext) |
2370
|
0 |
0 |
if ($opts{'-color'}) |
2371
|
0 |
0 |
ref $opts{'-color'} ? : |
2374
|
0 |
0 |
if ($opts{'-strokecolor'}) |
2377
|
0 |
0 |
ref $opts{'-strokecolor'} ? : |
2383
|
0 |
0 |
if $opts{'-charspace'} |
2384
|
0 |
0 |
if $opts{'-hscale'} |
2385
|
0 |
0 |
if $opts{'-wordspace'} |
2386
|
0 |
0 |
if $opts{'-render'} |
2389
|
0 |
0 |
if ($opts{'-right'} or $align =~ /^r/i) { } |
|
0 |
0 |
elsif ($opts{'-center'} or $align =~ /^c/i) { } |
2402
|
0 |
0 |
if ($wastext) |
2431
|
0 |
183 |
unless defined $text and length $text |
2434
|
0 |
183 |
if (exists $opts{'size'}) |
2437
|
0 |
183 |
if (exists $opts{'character_spacing'}) |
2440
|
0 |
183 |
if (exists $opts{'word_spacing'}) |
2445
|
913 |
2 |
unless defined $opts{$k} |
2468
|
0 |
0 |
if (defined $obj) { } |
2489
|
0 |
0 |
if (@_) |
2490
|
0 |
0 |
unless ($self->{' poststream'} =~ /\s$/) |
2500
|
778 |
0 |
if (@_) |
2501
|
129 |
649 |
unless ($self->{' stream'} =~ /\s$/) |
2525
|
19 |
0 |
unless ($self->_in_text_object) |
2552
|
15 |
108 |
if ($self->_in_text_object) |
2562
|
29 |
2 |
if ($self->{' apipage'}) { } |
2571
|
0 |
2 |
if ref($dict) =~ /Objind$/ |
2574
|
0 |
2 |
if ref($dict->{$type}) =~ /Objind$/ |
2575
|
2 |
0 |
if (defined $obj) { } |
2579
|
0 |
2 |
if ($force) { } |