PDF::API2::Basic::PDF::Number - Numbers in PDF. Inherits from L<PDF::API2::Basic::PDF::String>


PDF-API2 documentation Contained in the PDF-API2 distribution.

Index


Code Index:

NAME

Top

PDF::API2::Basic::PDF::Number - Numbers in PDF. Inherits from PDF::API2::Basic::PDF::String

METHODS

Top

$n->convert($str)

Converts a string from PDF to internal, by doing nothing

$n->as_pdf

Converts a number to PDF format


PDF-API2 documentation Contained in the PDF-API2 distribution.
#=======================================================================
#
#   THIS IS A REUSED PERL MODULE, FOR PROPER LICENCING TERMS SEE BELOW:
#
#   Copyright Martin Hosken <Martin_Hosken@sil.org>
#
#   No warranty or expression of effectiveness, least of all regarding
#   anyone's safety, is implied in this software or documentation.
#
#   This specific module is licensed under the Perl Artistic License.
#
#=======================================================================
package PDF::API2::Basic::PDF::Number;

our $VERSION = '2.019';

use base 'PDF::API2::Basic::PDF::String';

use strict;

sub convert {
    return $_[1];
}

sub as_pdf {
    return $_[0]->{'val'};
}

1;