Skip to content Skip to sidebar Skip to footer

Pdf::fromhtml Creates Empty Pdf

I'm using Perls PDF::FromHTML to create a PDF-file. My code looks like this: open HTML, '>', 'file.html'; ... close HTML; chmod(0777, 'file.html'); my $pdf = PDF::FromHTML->

Solution 1:

You need to specify a valid font. The second example has a non valid fontname.

If you installed PDF::API2 you could try to use: 'Helvetica' as fontname.

Please check you HTML file, it should be quite simple (no CSS or javascript).

Regards,

Post a Comment for "Pdf::fromhtml Creates Empty Pdf"