PDF::API2::Basic::PDF::Utils - Utility functions for PDF library


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

Index


Code Index:

NAME

Top

PDF::API2::Basic::PDF::Utils - Utility functions for PDF library

DESCRIPTION

Top

A set of utility functions to save the fingers of the PDF library users!

FUNCTIONS

Top

PDFBool

Creates a Bool via PDF::API2::Basic::PDF::Bool->new

PDFArray

Creates an array via PDF::API2::Basic::PDF::Array->new

PDFDict

Creates a dict via PDF::API2::Basic::PDF::Dict->new

PDFName

Creates a name via PDF::API2::Basic::PDF::Name->new

PDFNull

Creates a null via PDF::API2::Basic::PDF::Null->new

PDFNum

Creates a number via PDF::API2::Basic::PDF::Number->new

PDFStr

Creates a string via PDF::API2::Basic::PDF::String->new

PDFStrHex

Creates a hex-string via PDF::API2::Basic::PDF::String->new

PDFUtf

Creates a utf8-string via PDF::API2::Basic::PDF::String->new

PDFLiteral

Creates a pdf-literal via PDF::API2::Basic::PDF::Literal->new


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::Utils;

our $VERSION = '2.019';

use strict;

use PDF::API2::Basic::PDF::Array;
use PDF::API2::Basic::PDF::Bool;
use PDF::API2::Basic::PDF::Dict;
use PDF::API2::Basic::PDF::Name;
use PDF::API2::Basic::PDF::Null;
use PDF::API2::Basic::PDF::Number;
use PDF::API2::Basic::PDF::String;
use PDF::API2::Basic::PDF::Literal;

use Exporter;
use vars qw(@EXPORT @ISA);
@ISA = qw(Exporter);
@EXPORT = qw(PDFBool PDFArray PDFDict PDFLiteral PDFName PDFNull
             PDFNum PDFStr PDFStrHex PDFUtf asPDFBool asPDFName
             asPDFNum asPDFStr);

sub PDFBool {
    return PDF::API2::Basic::PDF::Bool->new(@_);
}

sub PDFArray {
    return PDF::API2::Basic::PDF::Array->new(@_);
}

sub PDFDict {
    return PDF::API2::Basic::PDF::Dict->new(@_);
}

sub PDFName {
    return PDF::API2::Basic::PDF::Name->new(@_);
}

sub PDFNull {
    return PDF::API2::Basic::PDF::Null->new(@_);
}

sub PDFNum {
    return PDF::API2::Basic::PDF::Number->new(@_);
}

sub PDFStr {
    return PDF::API2::Basic::PDF::String->new(@_);
}

sub PDFStrHex {
    my $string = PDF::API2::Basic::PDF::String->new(@_);
    $string->{' ishex'} = 1;
    return $string;
}

sub PDFUtf {
    my $string = PDF::API2::Basic::PDF::String->new(@_);
    $string->{' isutf'} = 1;
    return $string;
}

sub PDFLiteral {
    return PDF::API2::Basic::PDF::Literal->new(@_);
}

1;