in reply to Splitting PDFs with PDF::API2

Place the full path of your PDF file on this line.
my $filename = shift || 'test.pdf';
so it would look something like the following:
my $filename = '/downloads/YuruguOCR.pdf';