| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package PDF::Builder::Outlines; |
|
2
|
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
3123
|
use base 'PDF::Builder::Outline'; |
|
|
2
|
|
|
|
|
6
|
|
|
|
2
|
|
|
|
|
1605
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
36
|
use strict; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
90
|
|
|
6
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
157
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '3.028'; # VERSION |
|
9
|
|
|
|
|
|
|
our $LAST_UPDATE = '3.027'; # manually update whenever code is changed |
|
10
|
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
12
|
use PDF::Builder::Basic::PDF::Utils; |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
449
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 NAME |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
PDF::Builder::Outlines - Further Outline handling |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Inherits from L<PDF::Builder::Outline> |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
This creates the I<root> of any collection of Outline entries. It is thus |
|
20
|
|
|
|
|
|
|
limited to one instance in a document, although it may be called multiple |
|
21
|
|
|
|
|
|
|
times to provide the root to Outline calls (see Examples). |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=cut |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub new { |
|
26
|
3
|
|
|
3
|
1
|
9
|
my ($class, $api) = @_; |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# creates a new Outlines object only if one doesn't already exist |
|
29
|
3
|
|
|
|
|
18
|
my $self = $class->SUPER::new($api); |
|
30
|
3
|
|
|
|
|
11
|
$self->{'Type'} = PDFName('Outlines'); |
|
31
|
|
|
|
|
|
|
|
|
32
|
3
|
|
|
|
|
7
|
return $self; |
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub count { |
|
36
|
11
|
|
|
11
|
1
|
32
|
my $self = shift(); |
|
37
|
11
|
|
|
|
|
22
|
return abs($self->SUPER::count()); |
|
38
|
|
|
|
|
|
|
} |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |