Pcore::PDF - non-blocking HTML to PDF converter
use Pcore::PDF; my $pdf = Pcore::PDF->new({ bin => 'path-to-princexml-executable', max_threads => 4, }); # $res->{data} contains ScalarRef to generated PDF content my $res = $pdf->generate_pdf($html);
Generate PDF from HTML templates, using princexml.
Path to princexml executable. Mandatory attribute.
Maximum number of princexml processes. Default value is 4.
4
Generates PDF from $html template. $result is a standard Pcore API result object, see Pcore::Lib::Result documentation for details.
$html
$result
zdm <zdm@softvisio.net>
This software is copyright (c) 2016 by zdm.
To install Pcore::PDF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pcore::PDF
CPAN shell
perl -MCPAN -e shell install Pcore::PDF
For more information on module installation, please visit the detailed CPAN module installation guide.