my $pdf = PDF::API2->new( -file => "mytest.pdf" ); my $page = $pdf->page(); my $tb = PDF::TextBlock->new({ pdf => $pdf, page => $page, # <--- ...