blib/lib/PDF/Builder.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 58 | 147 | 39.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
1291 | 6 | 0 | 0 | $rotate = $page->find_prop('Rotate') and not $page->{' opened'} |
1294 | 0 | 0 | 0 | $rotate != 0 and not $self->default('nounrotate') |
1321 | 2 | 0 | 4 | defined $page->{'Contents'} and not $page->{' opened'} |
1451 | 0 | 0 | 4 | ref $s_pdf and $s_pdf->isa('PDF::Builder') |
1571 | 0 | 0 | 1 | ref $s_pdf and $s_pdf->isa('PDF::Builder') |
1613 | 1 | 0 | 0 | exists $s_page->{'Annots'} and $s_page->{'Annots'} |
0 | 0 | 0 | exists $s_page->{'Annots'} and $s_page->{'Annots'} and $self->{'copyannots'} | |
1670 | 0 | 0 | 0 | $AcroForm and $t_a->{'Subtype'}->val eq 'Widget' |
1734 | 0 | 16 | 163 | scalar @corners and $corners[0] =~ /[a-z]/i |
1754 | 16 | 163 | 0 | $isName and $UU != 1 |
1957 | 0 | 0 | 0 | scalar @fonts and not -f $fonts[0] |
2202 | 0 | 0 | 0 | defined $opts{'-nouseGT'} and $opts{'-nouseGT'} == 1 |
2217 | 0 | 2 | 1 | $rc == 0 and $MSG_COUNT[0]++ == 0 |
2314 | 0 | 0 | 0 | defined $opts{'-nouseIPL'} and $opts{'-nouseIPL'} == 1 |
2329 | 0 | 1 | 1 | $rc == 0 and $MSG_COUNT[1]++ == 0 |
2838 | 42 | 57 | 9 | defined $objList{$objKey} and $update > 0 |
3045 | 16 | 82 | 8 | $objList{$thisObj}[$idx_parent] == -1 and $objList{$thisObj}[$idx_refcount] == 0 |
line | l | !l | condition |
---|---|---|---|
332 | 162 | 0 | eval { do { $VERSION } } || '(Unreleased Version)' |
531 | 15 | 0 | $self->{'pdf'}{' version'} ||= 1.4 |
792 | 163 | 0 | $opt{$k} || 'NONE' |
1003 | 0 | 15 | $pdf->{' apipagecount'} ||= 0 |
1222 | 2 | 139 | shift() || 0 |
1272 | 7 | 0 | shift() || 0 |
1449 | 4 | 0 | $s_idx ||= 0 |
1465 | 1 | 3 | $self->{'apiimportcache'} ||= {} |
1466 | 1 | 3 | $self->{'apiimportcache'}{$s_pdf} ||= {} |
1567 | 1 | 0 | $s_idx ||= 0 |
1568 | 0 | 1 | $t_idx ||= 0 |
1591 | 0 | 1 | $self->{'apiimportcache'} || {} |
1592 | 0 | 1 | $self->{'apiimportcache'}{$s_pdf} || {} |
2551 | 0 | 0 | $samples ||= 2 |
2744 | 0 | 0 | $root->{'Names'}{$cat}{'-vals'} ||= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
281 | 162 | 0 | 0 | $self->{'pages'}{'Resources'} ||= PDFDict() |
302 | 0 | 0 | 0 | $diaglevel < 0 or $diaglevel > 5 |
320 | 0 | 0 | 0 | $options{'-msgver'} == 0 or $options{'-msgver'} == 1 |
491 | 0 | 0 | 15 | $diaglevel < 0 or $diaglevel > 5 |
553 | 0 | 0 | 0 | $self->{'diaglevel'} < 0 or $self->{'diaglevel'} > 5 |
602 | 5 | 162 | 0 | $self->{'catalog'}{'ViewerPreferences'} ||= PDFDict() |
802 | 0 | 0 | 165 | unpack('n', $opt{$k}) == 65534 or unpack('n', $opt{$k}) == 65279 |
931 | 0 | 7 | 0 | $self->{'catalog'}{'PageLabels'} ||= PDFDict() |
932 | 0 | 7 | 0 | $self->{'catalog'}{'PageLabels'}{'Nums'} ||= PDFArray() |
1339 | 4 | 0 | 0 | $self->{'forcecompress'} eq 'flate' or $self->{'forcecompress'} =~ /^[1-9]\d*$/ |
1520 | 2 | 0 | 1 | $self->{'forcecompress'} eq 'flate' or $self->{'forcecompress'} =~ /^[1-9]\d*$/ |
1770 | 2 | 2 | 2 | $boxname eq 'BleedBox' or $boxname eq 'TrimBox' |
4 | 2 | 0 | $boxname eq 'BleedBox' or $boxname eq 'TrimBox' or $boxname eq 'ArtBox' | |
2220 | 0 | 0 | 1 | not defined $opts{'-silent'} or $opts{'-silent'} == 0 |
2332 | 0 | 0 | 1 | not defined $opts{'-silent'} or $opts{'-silent'} == 0 |
2716 | 0 | 1 | 0 | $self->{'pdf'}{'Root'}{'Outlines'} ||= 'PDF::Builder::Outlines'->new($self) |
2742 | 0 | 0 | 0 | $root->{'Names'} ||= PDFDict() |
2743 | 0 | 0 | 0 | $root->{'Names'}{$cat} ||= PDFDict() |
2745 | 0 | 0 | 0 | $root->{'Names'}{$cat}{'Limits'} ||= PDFArray() |
2746 | 0 | 0 | 0 | $root->{'Names'}{$cat}{'Names'} ||= PDFArray() |
2829 | 108 | 0 | 32 | $rawObject =~ /^(.*?)\s?(\d+) (\d+) obj\s(.*)$/s or $rawObject =~ /^(.*?)\s?(\d+) (\d+) obj(.*)$/s |
2920 | 3 | 0 | 105 | $rawObject =~ m[/Type(\s+)/XRef] or $rawObject =~ m[/Type/XRef] |