Skip Menu |

This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id: 15185
Status: resolved
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: Matthias.Belz [...] springer.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.46.003
Fixed in: (no value)



Subject: $pdf->pages causes hang-up
When the "pages" function of PDF::API2 is called for the attached PDF file, no result is returned. The program hangs, causing a high CPU load. Distribution file name: PDF-API2-0.46.003.tar.gz Revision: 1.83 Perl version: v5.8.4 built for sun4-solaris OS: SunOS 5.8 Code for reproducing the bug: #! /usr/local/bin/perl use PDF::API2; my $file = shift or die "No file name given\n"; my $PDFfile = PDF::API2->open($file); print $PDFfile->pages, "\n"; Thank you in advance for taking care of this!
Download bug2.pdf
application/pdf 2.9m

Message body not shown because it is not plain text.

the pdf contains very large resource structs which require a significant amount of time to load and parse due to the current implementation in PDF::API2. the module DOES NOT hang, but finishes in finite time! a speedup of up to 100 times has been implemented which becomes available in PDF-API2-0.49 on CPAN.