* On Tue, Nov 14, 2006 at 06:04:11PM +1100, Adam Kennedy wrote:
> I just realized that my previous response didn't make it to the list.
> 
> Something like this should work for you.
> 
> http://search.cpan.org/~audreyt/PDF-FromHTML-0.20/script/html2pdf.pl
> 
> Should be just a case of...
> 
>   [EMAIL PROTECTED]:~$ cpan -i PDF::FromHTML
> 
>   [EMAIL PROTECTED]:~$ html2pdf.pl source.html > target.pdf

Thanks Adam. xulrunner + mozilla2ps gave me good results, so I used
that. A bit slow, but I scripted it and left it to chug away...

Out of interest, 'cpan -i PDF::FromHTML' failed, due to 'cpan -i
HTML::Tidy' failing, with errors below. Not sure how to fix this - any
ideas? I tried googling on the error messages, installing tidy (in case
it's a missing library). I don't use Perl much, so don't know where to
start with these sort of problems.

Errors:

...
...
cp lib/HTML/Tidy.pm blib/lib/HTML/Tidy.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp  -typemap
/usr/share/perl/5.8/ExtUtils/typemap  Tidy.xs > Tidy.xsc && mv Tidy.xsc
Tidy.c
Please specify prototyping behavior for Tidy.xs (see perlxs manual)
cc -c  -I. -I/usr/include/tidy -I/usr/local/include/tidy
-I/sw/include/tidy -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"1.06\"
-DXS_VERSION=\"1.06\" -fPIC "-I/usr/lib/perl/5.8/CORE"   Tidy.c
Tidy.xs:5:18: error: tidy.h: No such file or directory
Tidy.xs:6:20: error: buffio.h: No such file or directory
...
...
  make had returned bad status, install seems impossible

--
Sonia Hamilton. GPG key A8B77238.
.
One OS to rule them all, One OS to find them.
One OS to call them all, And in salvation bind them.
In the bright land of Linux, Where the hackers play. 
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to