Subject: | Problem opening large files |
Date: | Fri, 24 Oct 2008 10:28:11 +0200 |
To: | <bug-Text-PDF [...] rt.cpan.org> |
From: | "Ostermayr Richard Dr." <Richard.Ostermayr [...] dpma.de> |
Hi,
We have encountered a problem with Text::PDF::File->open when the size
of the PDF file exceeds about 32 MB.
In this case the module hangs at the recursive call of sub readxrtr.
We could circumvent the problem by removing the recursive call in sub
readxrtr:
# $tdict->{' prev'} = $self->readxrtr($tdict->{'Prev'}->val)
# if (defined $tdict->{'Prev'} && $tdict->{'Prev'}->val
!= 0);
For our purposes (appending to the PDF a small piece of Acrobat
javascript) this workaround did the job.
My OS: Windows server
Perl version: 5.8.8
Module version: 0.29a
Any explanations or comments are welcome.
Best regards
Richard Ostermayr