Below are the particulars:
Computer 1: WinXP, Perl 5.10.0 Activestate, PDF-Reuse v35
Computer 2: Win7, Perl 5.16.3 Activestate, PDF-Reuse v35
Modules were installed using a mixture of PPM and CPAN
WINXP REUSE PM UN EDITED
$stream = '';
my $tSida = $sida + 1;
if ((@annots)
|| (defined @{$links{'-1'}})
|| (defined @{$links{$tSida}}))
{ $sidObjekt .= '/Annots ' . mergeLinks() . ' 0 R';
}
if (defined $AAPageSaved)
{ $sidObjekt .= "/AA $AAPageSaved";
undef $AAPageSaved;
}
$sidObjekt .= ">>endobj\n";
$objekt[$sidObjNr] = $pos;
$pos += syswrite UTFIL, $sidObjekt;
push @{$kids[0]}, $sidObjNr;
$sida++;
$counts[0]++;
if ($counts[0] > 9)
{ ordnaNoder(8); }
}
sub prEnd
{ if (! $pos)
{ return;
}
if ($stream)
{ skrivSida(); }
skrivUtNoder();
if($docProxy)
{ $docProxy->write_objects;
undef $docProxy; # Break circular refs
}
Windows 7 code edited using a suggestion from a fellow monk which fixed the error regarding a symbol reference.
$stream = '';
my $tSida = $sida + 1;
#if ((@annots)
#|| (defined @{$links{'-1'}})
#|| (defined @{$links{$tSida}}))
if(@annots || @{$links{'-1'}} || @{links{$tSida}} ) # LINE 995
{ $sidObjekt .= '/Annots ' . mergeLinks() . ' 0 R';
}
if (defined $AAPageSaved)
{ $sidObjekt .= "/AA $AAPageSaved";
undef $AAPageSaved;
}
$sidObjekt .= ">>endobj\n";
$objekt[$sidObjNr] = $pos;
$pos += syswrite UTFIL, $sidObjekt;
push @{$kids[0]}, $sidObjNr;
$sida++;
$counts[0]++;
if ($counts[0] > 9)
{ ordnaNoder(8); }
}
sub prEnd
{ if (! $pos)
{ return;
}
if ($stream) # LINE 1017
{ skrivSida(); }
skrivUtNoder();
if($docProxy)
{ $docProxy->write_objects;
undef $docProxy; # Break circular refs
}
And here is the code that is used to callback to the Reuse.pm in the script:
prEnd;