my $rpt_writer = PDF::ReportWriter->new( ... ); my $pdf_api2 = $rpt_writer->{pdf};