Posted on 2008-09-05 04:40:05-07 by petern
Undefined Entity while using PDF-FromHTML
Hi, I'm trying to use PDF-FROMHTML package (on Windows XP using xampp): <code> my $f_in="in/abc.html"; my $f_out="out/abc.pdf"; use PDF::FromHTML; my $pdf = PDF::FromHTML->new(); $pdf->load_file($f_in); $pdf->convert; $pdf->write_file($f_out); </code> and getting an error while in $pdf->convert: <code> [Thu Sep 04 21:22:38 2008] [error] [client 127.0.0.1] Unknown error type: line 1 column 39 - Info: html previously mentioned at D:/perl/site/lib/PDF/FromHTML.pm line 115\r [Thu Sep 04 21:22:38 2008] [error] [client 127.0.0.1] Unknown error type: line 344 column 66 - Info: thead previously mentioned at D:/perl/site/lib/PDF/FromHTML.pm line 115\r [Thu Sep 04 21:22:38 2008] [error] [client 127.0.0.1] \r [Thu Sep 04 21:22:38 2008] [error] [client 127.0.0.1] undefined entity at line 293, column 16, byte 13513 at D:/perl/lib/XML/Parser.pm line 187\r [Thu Sep 04 21:22:38 2008] [error] [client 127.0.0.1] at D:/perl/site/lib/PDF/FromHTML.pm line 128\r </code> I re-installed the pdf-fromhtml package as well as HTML::Tidy and XML:Clean Does anyone have any idea how to resolve this? Thank you.
Direct Responses: 8748 | Write a response
Posted on 2008-09-05 04:56:42-07 by petern in response to 8747
Re: Undefined Entity while using PDF-FromHTML
not sure why the posting doesn't show correctly with line breaks (it shows as one continuous line).
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.