Convert HTML to PDF
am 14.06.2011 10:54:05 von Ramprasad Prasad
--000e0cd20d92a744cd04a5a82da2
Content-Type: text/plain; charset=ISO-8859-1
I am trying to use PDF::FromHTML on my linux ( Fedora 12 ) machine
I have just copied the man page example but I cant get it to run
---------------
#!/usr/bin/perl
use PDF::FromHTML;
my $pdf = PDF::FromHTML->new( encoding => 'utf-8' );
$pdf->load_file('source.html');
$pdf->convert(
Font => 'font.ttf',
LineHeight => 10,
Landscape => 1,
);
$pdf->write_file('target.pdf');
------------
I am getting an error like
perl: symbol lookup error:
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-mult i/auto/HTML/Tidy/Tidy.so:
undefined symbol: tidyCreate
Is there a better way of creating PDF from HTML .. I believe this particular
module is not much supported any longer
--
Thanks
Ram
n
--000e0cd20d92a744cd04a5a82da2--
Re: Convert HTML to PDF
am 14.06.2011 17:09:08 von rvtol+usenet
On 2011-06-14 10:54, Ramprasad Prasad wrote:
> I am trying to use PDF::FromHTML on my linux ( Fedora 12 ) machine
>[...]
> Is there a better way of creating PDF from HTML .. I believe this particular
> module is not much supported any longer
I prefer to use webkit for this:
https://code.google.com/p/wkhtmltopdf/
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: Convert HTML to PDF
am 15.06.2011 10:27:53 von Ramprasad Prasad
--000e0cd2dc5cce06d804a5bbedfc
Content-Type: text/plain; charset=ISO-8859-1
On 14 June 2011 20:39, Dr.Ruud wrote:
> On 2011-06-14 10:54, Ramprasad Prasad wrote:
>
> I am trying to use PDF::FromHTML on my linux ( Fedora 12 ) machine
>> [...]
>>
>> Is there a better way of creating PDF from HTML .. I believe this
>> particular
>> module is not much supported any longer
>>
>
> I prefer to use webkit for this:
> https://code.google.com/p/wkhtmltopdf/
>
How can I put page breaks
--000e0cd2dc5cce06d804a5bbedfc--
Re: Convert HTML to PDF
am 16.06.2011 10:43:23 von rvtol+usenet
On 2011-06-15 10:27, Ramprasad Prasad wrote:
> On 14 June 2011 20:39, Dr.Ruud wrote:
>> On 2011-06-14 10:54, Ramprasad Prasad wrote:
>>> [...] way of creating PDF from HTML [...]
>>
>> I prefer to use webkit for this:
>> https://code.google.com/p/wkhtmltopdf/
>
> How can I put page breaks
See the documentation
or google: wkhtmltopdf page break.
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/