| 1 | package Text::PDF::Number; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Text::PDF::Number - Numbers in PDF. Inherits from L<Text::PDF::String> | ||
| 6 | |||
| 7 | =head1 METHODS | ||
| 8 | |||
| 9 | =cut | ||
| 10 | |||
| 11 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use vars qw(@ISA); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | # no warnings qw(uninitialized); | ||
| 14 | |||
| 15 | 1 | ▶ | use Text::PDF::String; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 1 | @ISA = qw(Text::PDF::String); | |
| 17 | |||
| 18 | |||
| 19 | =head2 $n->convert($str) | ||
| 20 | |||
| 21 | Converts a string from PDF to internal, by doing nothing | ||
| 22 | |||
| 23 | =cut | ||
| 24 | |||
| 25 | sub convert | ||
| 26 | 2 | ▶ | { return $_[1]; } |
|
Subroutine
convert: called CC=1 SCAR=0.0
Pod
documented
| |||
| 27 | |||
| 28 | |||
| 29 | =head2 $n->as_pdf | ||
| 30 | |||
| 31 | Converts a number to PDF format | ||
| 32 | |||
| 33 | =cut | ||
| 34 | |||
| 35 | sub as_pdf | ||
| 36 | 7 | ▶ | { $_[0]->{'val'}; } |
|
Subroutine
as_pdf: called CC=1 SCAR=0.0
Pod
documented
| |||
| 37 | |||
| 38 | |||