API2/Resource/XObject/Form/Hybrid.pm

filter: Statementstmt 100% 47 / 47 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 2 / 2 totaltotal 98.3% 58 / 59 SCAR 6.9
CC
2
Cov
98%
outobjdeep
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« API2/Resource/XObject.pm ↑ Summary API2/Basic/PDF/Null.pm »
1 package PDF::API2::Resource::XObject::Form::Hybrid;
2  
3 38 ▶use base qw(PDF::API2::Content PDF::API2::Resource::XObject::Form);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 38 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 38 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 38 our $VERSION = '2.044'; # VERSION
9  
10 38 ▶use PDF::API2::Basic::PDF::Dict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 38 ▶use PDF::API2::Basic::PDF::Utils;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 38 ▶use PDF::API2::Resource::XObject::Form;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 sub new {
15 10 ▶ my $self = PDF::API2::Resource::XObject::Form::new(@_);
Subroutine new: called CC=1 SCAR=0.0
Pod documented
16  
17 10 $self->{' stream'} = '';
18 10 $self->{' poststream'} = '';
19 10 $self->{' font'} = undef;
20 10 $self->{' fontsize'} = 0;
21 10 $self->{' charspace'} = 0;
22 10 $self->{' hscale'} = 100;
23 10 $self->{' wordspace'} = 0;
24 10 $self->{' leading'} = 0;
25 10 $self->{' rise'} = 0;
26 10 $self->{' render'} = 0;
27 10 $self->{' matrix'} = [1, 0, 0, 1, 0, 0];
28 10 $self->{' fillcolor'} = [0];
29 10 $self->{' strokecolor'} = [0];
30 10 $self->{' translate'} = [0, 0];
31 10 $self->{' scale'} = [1, 1];
32 10 $self->{' skew'} = [0, 0];
33 10 $self->{' rotate'} = 0;
34 10 $self->{' apiistext'} = 0;
35  
36 10 $self->{'Resources'} = PDFDict();
37 10 $self->{'Resources'}->{'ProcSet'} = PDFArray(map { PDFName($_) } qw(PDF Text ImageB ImageC ImageI));
38  
39 10 $self->compressFlate();
40  
41 10 return $self;
42 }
43  
44 sub outobjdeep {
45 8 ▶ my $self = shift();
Subroutine outobjdeep: called CC=2 SCAR=7.1
Pod documented
46  
47 8 ▶ $self->textend() unless $self->{' nofilt'};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{" nofilt"} 8 0 8
48  
49 8 return PDF::API2::Basic::PDF::Dict::outobjdeep($self, @_);
50 }
51  
52 38 1;
« API2/Resource/XObject.pm ↑ Summary API2/Basic/PDF/Null.pm »