I'm having a problem with a script which uses PDF::FromHTML. My provider says it is a problem on the script - I don't think so!

I wondered if some kind person would take a look and either let me know ther error of my ways, or give me the courage to face up to my provider...

Thanks

#!/usr/bin/perl -w use PDF::FromHTML; my $pdf = PDF::FromHTML->new( encoding => 'utf-8' ); $pdf->load_file('source.html'); $pdf->convert; $pdf->write_file('target.pdf'); print "Content-type: text/html\n\n"; print "done";

Gives the error:

Can't locate pdflib_pl.pm in @INC (@INC contains:/usr/local/lib/perl5/5.8.2/i386-freebsd /usr/local/lib/perl5/5.8.2 /usr/local/lib/perl5/site_perl/5.8.2/i386-freebsd
/usr/local/lib/perl5/site_perl/5.8.2 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/site_perl/5.8.2/PDF/Template.pm line 13.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.2/PDF/Template.pm line 13.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.2/PDF/FromHTML.pm line 20.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.2/PDF/FromHTML.pm line 20.
Compilation failed in require at pdf1.pl line 5.
BEGIN failed--compilation aborted at pdf1.pl line 5.

Update: I just wanted to give a heads up on the outcome of this. I have discovered that PDF::Template is the 'culprit' in all this, requiring pdflib_pl, though the next version is promised to include PDF::API2. My provider has kindly installed pdflib_pl Lite and I shall have to test to see how restrictive that is...


In reply to PDF::FromHTML istallation problem or script? by jonnyfolk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.