Subject: | PDF::Report does not function correctly with PDF::API2 version 0.40.x |
Dear Maintainer,
Please note that with the release of PDF::API2, PDF::Report has stopped functioning properly. This has been bookin as Debian bug 292622:
http://bugs.debian.org/292622
The following script fails:
-------------------
#!/usr/bin/perl
use PDF::Report;
my $text = "%TEST%";
my $pdf = new PDF::Report( PageSize => "a4" );
$pdf->newpage(1);
$pdf->setAddTextPos(700, 100);
$pdf->addText($text);
$pdf->saveAs("test.pdf");
-------------------
The error it produces is:
Can't use an undefined value as an ARRAY reference at /usr/share/perl5/PDF/Report.pm line 109.
The hash, containing the dimensions of commonly used pageformats, that was previously defined in PDF::API2::Page as %pgsz is no longer properly imported or populated.
Regards,
Allard Hoeve