blib/lib/PDF/Builder/Page.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 82 | 35.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
174 | 78 | 20 | 29 | scalar @corners and $corners[0] =~ /[a-z]/i |
192 | 0 | 0 | 8 | $box eq "CropBox" and not defined $pdf->{'pages'}{'CropBox'} |
195 | 0 | 8 | 0 | $box ne "CropBox" and $box ne "MediaBox" |
207 | 0 | 0 | 0 | defined $opts{'-orient'} and not defined $opts{'orient'} |
668 | 0 | 0 | 2 | &looks_like_number($w) and &looks_like_number($h) |
718 | 6 | 0 | 2 | $box ne "media" and not ref $value |
6 | 0 | 2 | $box ne "media" and not ref $value and &looks_like_number($value) | |
722 | 2 | 0 | 0 | $parent eq "trim" and not $boxes{'trim'} |
723 | 0 | 0 | 2 | $parent eq "bleed" and not $boxes{'bleed'} |
724 | 2 | 0 | 0 | $parent eq "bleed" and not $boxes{'bleed'} |
787 | 0 | 154 | 0 | defined $dir and $dir > 0 |
923 | 0 | 0 | 0 | defined $hash{'-prepend'} and not defined $hash{'prepend'} |
924 | 0 | 0 | 0 | defined $hash{'-compress'} and not defined $hash{'compress'} |
1006 | 0 | 0 | 0 | defined $hash{'-prepend'} and not defined $hash{'prepend'} |
1007 | 0 | 0 | 0 | defined $hash{'-compress'} and not defined $hash{'compress'} |
1057 | 0 | 1 | 0 | do { ref($self->{'Annots'}) =~ /Objind/ } && do { $self->{'Annots'}->realise } |
line | l | !l | condition |
---|---|---|---|
452 | 0 | 0 | $degrees //= 0 |
1110 | 0 | 2 | $dict->{$type}{$key} || undef |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
189 | 2 | 2 | 4 | $box eq "ArtBox" or $box eq "TrimBox" |
4 | 2 | 2 | $box eq "ArtBox" or $box eq "TrimBox" or $box eq "BleedBox" | |
774 | 9 | 152 | 0 | $self->{'Contents'} || PDFArray() |
931 | 0 | 0 | 0 | $self->{' api'}{'forcecompress'} eq 'flate' || $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/ |
134 | 0 | 0 | $compress //= $self->{' api'}{'forcecompress'} eq 'flate' || $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/ | |
1014 | 0 | 0 | 0 | $self->{' api'}{'forcecompress'} eq 'flate' || $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/ |
20 | 0 | 0 | $compress //= $self->{' api'}{'forcecompress'} eq 'flate' || $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/ | |
1102 | 0 | 0 | 0 | $dict || $self->{'Resources'} || PDFDict() |
1106 | 3 | 29 | 0 | $dict->{$type} || PDFDict() |
1115 | 0 | 30 | 0 | $dict->{$type}{$key} || $obj |