Version 2.031.
$ perl -MPDF::API2 -e 'PDF::API2->open("t/4pages.pdf")->saveas("pa.pdf")'
Can't use an undefined value as an ARRAY reference at /Library/Perl/5.12/PDF/API2/Basic/PDF/File.pm line 1276.
I was just trying to rewrite a file that another PDF module couldn’t read (to see if that would make it readable by the other module). The documentation implies that this should work.
I encountered this problem with PDFs generated by Mac OS X 10.8.5 Quartz PDFContext and those generated by ABBYY FineReader. (I.e., it does not seem specific to any particular PDF generator.)