Subject: | PATCH for append page content on array of reference of stream obj |
Date: | Mon, 23 Sep 2013 14:56:38 +0200 |
To: | bug-CAM-PDF [...] rt.cpan.org |
From: | Dario Santini <dario.santini [...] gmail.com> |
if u get a pdf like dadbdcdd.pdf (attached) where page 1 content is
disttributed over more than 1 objects strams under 1 array object reference
and u need to append content to page 1..
I prepared the patch
cahange line CAM/PDF.pm:3144 whit this short code.
Show quoted text
>>>
my $contents = $self->getValue($page->{Contents});
if ( ref $contents eq 'ARRAY' )
{
push @{$contents}, $streamref;
}
else
{
$page->{Contents} = CAM::PDF::Node->new('array', [ $page->{Contents},
$streamref ], $objnum, $gennum);
}
<<<
regards
D.
Message body not shown because it is not plain text.