CAM::PDF::Node - PDF element


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

Index


Code Index:

NAME

Top

CAM::PDF::Node - PDF element

SYNOPSIS

Top

   my $node = CAM::PDF::Node->new('number', 1.0);

DESCRIPTION

Top

This is a simplistic internal class for representing arbitrary PDF data structures.

LICENSE

Top

Same as CAM::PDF

FUNCTIONS

Top

$pkg->new($type, $value)
$pkg->new($type, $value, $objnum)
$pkg->new($type, $value, $objnum, $gennum)

Create a new PDF element.

AUTHOR

Top

See CAM::PDF


CAM-PDF documentation Contained in the CAM-PDF distribution.
package CAM::PDF::Node;

use 5.006;
use warnings;
use strict;

our $VERSION = '1.55';

sub new
{
   my $pkg = shift;

   my $self = {
      type => shift,
      value => shift,
   };

   my $objnum = shift;
   my $gennum = shift;
   if (defined $objnum)
   {
      $self->{objnum} = $objnum;
   }
   if (defined $gennum)
   {
      $self->{gennum} = $gennum;
   }

   return bless $self, $pkg;
}

1;
__END__