XML::ApacheFOP is a Perl module that can access Apache FOP from Perl to create PDF files using XSL-FO.
SYNOPSIS
use XML::ApacheFOP;
my $Fop = XML::ApacheFOP->new();
# create a PDF using a xml/xsl tranformation
$Fop->fop(xml=>"foo.xml", xsl=>"bar.xsl", outfile=>"temp1.pdf") die "cannot create pdf: " . $Fop->errstr;
# create a PDF using an xsl-fo file
$Fop->fop(fo=>"foo.fo", outfile=>"temp2.pdf") die "cannot create pdf: " . $Fop->errstr;
# create a PostScript file using an xsl-fo file
$Fop->fop(fo=>"foo.fo", outfile=>"temp3.ps", rendertype=>"ps") die "cannot create ps file: " . $Fop->errstr;
# reset FOP's image cache (available starting with FOP version 0.20.5)
$Fop->reset_image_cache() die "could not reset FOP's image cache: " . $Fop->errstr;
XML::ApacheFOP allows you to create PDFs (or other output types, explained below) using Apache FOP.
Since FOP is written in Java, this module relies on Java.pm. You will need to have FOP and Java.pm installed before installing this module.