in reply to Re^3: Splitting PDFs with PDF::API2
in thread Splitting PDFs with PDF::API2


about line 5 So the open statement opens an existing PDF file.
# Open an existing PDF file $pdf = PDF::API2->open('some.pdf');

and to create a new pdf in the directory of your choice..
$pdf = PDF::API2->new(-file => 'our/new.pdf');
Please note PDF::API2 and PDF::Create are two different modules on CPAN. more info on the metacpan site

The temporal difficulty with perl is u need to know C well to know its awesome.else u just keep *using* it and writing inefficient code