blib/lib/PDF/Builder/Page.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 41 | 56.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
128 | 78 | 18 | 29 | scalar @corners and $corners[0] =~ /[a-z]/i |
146 | 0 | 0 | 8 | $box eq 'CropBox' and not defined $pdf->{'pages'}{'CropBox'} |
149 | 0 | 8 | 0 | $box ne 'CropBox' and $box ne 'MediaBox' |
414 | 111 | 0 | 0 | defined $dir and $dir > 0 |
550 | 0 | 1 | 0 | do { ref($self->{'Annots'}) =~ /Objind/ } && do { $self->{'Annots'}->realise } |
line | l | !l | condition |
---|---|---|---|
603 | 0 | 2 | $dict->{$type}{$key} || undef |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
143 | 2 | 2 | 4 | $box eq 'ArtBox' or $box eq 'TrimBox' |
4 | 2 | 2 | $box eq 'ArtBox' or $box eq 'TrimBox' or $box eq 'BleedBox' | |
401 | 9 | 109 | 0 | $self->{'Contents'} || PDFArray() |
505 | 9 | 0 | 82 | $self->{' api'}{'forcecompress'} eq 'flate' or $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/ |
536 | 5 | 0 | 15 | $self->{' api'}{'forcecompress'} eq 'flate' or $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/ |
595 | 0 | 0 | 0 | $dict || $self->{'Resources'} || PDFDict() |
599 | 3 | 27 | 0 | $dict->{$type} || PDFDict() |
608 | 0 | 28 | 0 | $dict->{$type}{$key} || $obj |