| PDF-API2 documentation | Contained in the PDF-API2 distribution. |
PDF::API2::Basic::PDF::Null - PDF Null type object. This is a subclass of PDF::API2::Basic::PDF::Objind and cannot be subclassed.
Returns the null object. There is only one null object.
Pretends to finish reading the object.
Output the object in PDF format.
Returns false because null is not a full object.
Another no-op.
Return undef.
| 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::Null; our $VERSION = '2.019'; use base 'PDF::API2::Basic::PDF::Objind'; use strict;
# There is only one null object (section 3.2.8). my $null_obj = bless {}, 'PDF::API2::Basic::PDF::Null';
sub new { return $null_obj; }
sub realise { return $null_obj; }
sub outobjdeep { my ($self, $fh, $pdf) = @_; $fh->print('null'); }
sub is_obj { return 0; }
sub copy { return $null_obj; }
sub val { return undef; } 1;