File Coverage

blib/lib/Khonsu/Form/Field/Input.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 22 23 95.6


line stmt bran cond sub pod time code
1             package Khonsu::Form::Field::Input;
2              
3 5     5   39 use parent 'Khonsu::Form::Field';
  5         10  
  5         28  
4              
5 5     5   303 use PDF::API2::Basic::PDF::Literal;
  5         11  
  5         113  
6 5     5   25 use PDF::API2::Basic::PDF::Utils;
  5         12  
  5         968  
7              
8             sub configure {
9 3     3 0 9 my ($self) = @_;
10 3         13 $self->annotate->{FT} = PDFName('Tx');
11 3         10 $self->annotate->{V} = do {
12 3         12 my $s = PDFStr('');
13 3         47 $s->{' isutf'} = PDFBool(1);
14 3         98 $s;
15             };
16 3         15 $self->annotate->{DA} = PDFStr('0 0 0 reg /F3 11 Tf');
17 3         14 $self->annotate->{DV} = $self->annotate->{V};
18              
19 3         14 $self->annotate->{Ff} = PDFNum(393216);
20             }
21              
22              
23             1;