The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Pcore::PDF - non-blocking HTML to PDF converter

SYNOPSIS

use Pcore::PDF;

my $pdf = Pcore::PDF->new({
    bin         => 'path-to-princexml-executable',
    max_threads => 4,
});

my $cv = AE::cv;

$pdf->generate_pdf($html, sub ($res) {
    if (!$res) {
        say $res;
    }
    else {

        # $res->{data}->{pdf} contains ScalarRef to generated PDF content
    }

    return;
});

$cv->recv;

DESCRIPTION

Generate PDF from HTML templates, using princexml.

ATTRIBUTES

METHODS

SEE ALSO

AUTHOR

zdm zdm@softvisio.net

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by zdm.