in reply to PDF::API2::Simple - Can't call method "new_obj" on unblessed reference at /usr/local/share/perl/5.18.2/PDF/API2/Page.pm line 268.

It would help if you showed us the code - in particular, the calling sequence, and values of parameters passed.

The area that is failing is:

sub content { my ($self,$obj,$dir) = @_; if(defined($dir) && $dir>0) { $self->precontent($obj); } else { $self->addcontent($obj); } $self->{' apipdf'}->new_obj($obj) unless($obj->is_obj($self->{' ap +ipdf'}));
and it appears that "$self->{' apipdf'}" is not defined.
Has that been setup properly , perhaps by calling the "coerce" method ?

        ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

  • Comment on Re: PDF::API2::Simple - Can't call method "new_obj" on unblessed reference at /usr/local/share/perl/5.18.2/PDF/API2/Page.pm line 268.
  • Download Code