my $rootpath
my $config
my $data
my $xs
my $xml
my $pdf
my $pagecount
my $output
sub process_page
sub get_pdf_height