elavarasan has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl # use strict; use CGI; my $cgi=new CGI; print $cgi->header; use HTML::HTMLDoc; my $htmldoc = new HTML::HTMLDoc(); $htmldoc->set_html_content('<html><body>A PDF file</body></html>'); # $htmldoc->set_input_file("/public_html/voslegal/legal/transactionact +ive/joselawfirm/transactionactive/independent-case/documents/temp.htm +l"); # alternative to use a present file from your fs my $pdf = $htmldoc->generate_pdf(); print $pdf->to_string(); $pdf->to_file('/vos/spain/newpdfdoc.pdf');
|
|---|