« Builder/Basic/PDF/Number.pm
↑ Summary
Builder/Resource/CIDFont/CJKFont/adobesongstdlightacro.data »
| 1 | package PDF::Builder::Outlines; | ||
| 2 | |||
| 3 | 2 | ▶ | use base 'PDF::Builder::Outline'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | our $VERSION = '3.028'; # VERSION | |
| 9 | 2 | our $LAST_UPDATE = '3.027'; # manually update whenever code is changed | |
| 10 | |||
| 11 | 2 | ▶ | use PDF::Builder::Basic::PDF::Utils; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | 3 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 26 | 3 | my ($class, $api) = @_; | |
| 27 | |||
| 28 | # creates a new Outlines object only if one doesn't already exist | ||
| 29 | 3 | my $self = $class->SUPER::new($api); | |
| 30 | 3 | $self->{'Type'} = PDFName('Outlines'); | |
| 31 | |||
| 32 | 3 | return $self; | |
| 33 | } | ||
| 34 | |||
| 35 | 11 | ▶ | sub count { |
|
Subroutine
count: called CC=1 SCAR=0.0
Pod
documented
| |||
| 36 | 11 | my $self = shift(); | |
| 37 | 11 | return abs($self->SUPER::count()); | |
| 38 | } | ||
| 39 | |||
| 40 | 2 | 1; | |