Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

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)



MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Subject: $pdf->pages causes hang-up
Content-Type: multipart/mixed; boundary="----------=_1129890853-3833-0"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 496
Download (untitled) / with headers
text/plain 496b
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!
Content-Type: application/pdf; name="bug2.pdf"
Content-Disposition: inline; filename="bug2.pdf"
Content-Transfer-Encoding: base64
Content-Length: 3051567
Download bug2.pdf
application/pdf 2.9m

Message body not shown because it is not plain text.

Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
X-RT-Original-Encoding: iso-8859-1
Content-Length: 312
Download (untitled) / with headers
text/plain 312b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.