in reply to PDF::FromHTML and UTF8

reading the documentation:
my $pdf = PDF::FromHTML->new( encoding => 'utf-8' ); $pdf->load_file('source.html'); $pdf->convert( # With PDF::API2, font names such as 'traditional' also works Font => 'font.ttf', LineHeight => 10, Landscape => 1, ); $pdf->write_file('target.pdf');
It seems you might need a utf8 true type font (ttf) or PDF::API2

Replies are listed 'Best First'.
Re^2: PDF::FromHTML and UTF8
by Anonymous Monk on Dec 08, 2006 at 14:58 UTC
    It's not that simple with an utf8-ttf :( Internally the module use charsets from PDF::API2::Resource::Font::CoreFont::*. In this tables any char is described. If I use some utf8-ttf, I've to write some of thoose descriptions. And I don't want to do that for thousands of characters. Can I use PDF::API2 to create PDS's from HTML directly?