line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CAM::PDF::Node; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
77
|
use 5.006; |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
129
|
|
4
|
3
|
|
|
3
|
|
18
|
use warnings; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
102
|
|
5
|
3
|
|
|
3
|
|
595
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
477
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '1.60'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
CAM::PDF::Node - PDF element |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 SYNOPSIS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my $node = CAM::PDF::Node->new('number', 1.0); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 DESCRIPTION |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
This is a simplistic internal class for representing arbitrary PDF |
20
|
|
|
|
|
|
|
data structures. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 LICENSE |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Same as L |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 FUNCTIONS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=over |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item $pkg->new($type, $value) |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item $pkg->new($type, $value, $objnum) |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item $pkg->new($type, $value, $objnum, $gennum) |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Create a new PDF element. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub new |
41
|
|
|
|
|
|
|
{ |
42
|
24086
|
|
|
24086
|
1
|
29761
|
my $pkg = shift; |
43
|
|
|
|
|
|
|
|
44
|
24086
|
|
|
|
|
81013
|
my $self = { |
45
|
|
|
|
|
|
|
type => shift, |
46
|
|
|
|
|
|
|
value => shift, |
47
|
|
|
|
|
|
|
}; |
48
|
|
|
|
|
|
|
|
49
|
24086
|
|
|
|
|
30808
|
my $objnum = shift; |
50
|
24086
|
|
|
|
|
26827
|
my $gennum = shift; |
51
|
24086
|
100
|
|
|
|
54312
|
if (defined $objnum) |
52
|
|
|
|
|
|
|
{ |
53
|
6470
|
|
|
|
|
10572
|
$self->{objnum} = $objnum; |
54
|
|
|
|
|
|
|
} |
55
|
24086
|
100
|
|
|
|
40827
|
if (defined $gennum) |
56
|
|
|
|
|
|
|
{ |
57
|
6446
|
|
|
|
|
15311
|
$self->{gennum} = $gennum; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
24086
|
|
|
|
|
113873
|
return bless $self, $pkg; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
1; |
64
|
|
|
|
|
|
|
__END__ |