Thread Problem mit PDF::FromHTML
(6 answers)
Opened by bianca at 2010-01-12 13:47
Wollte zu o.a. Modul um Hilfe bitten.
Habe es auf Vista mit ActivePerl 5.10.0 installiert wie folgt: Code: (dl
)
1 PDF-FromHTML marked for install Test HTML-Datei: Code: (dl
)
1 <html> Test Perl Script: Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 #!/usr/bin/perl -w use strict; use warnings; use PDF::FromHTML; my $pdf = PDF::FromHTML->new( encoding => 'utf-8' ); # Loading from a file: $pdf->load_file('testpdf.html'); # Perform the actual conversion: $pdf->convert( # With PDF::API2, font names such as 'traditional' also works Font => 'ariali.ttf', LineHeight => 10, Landscape => 1, ); # Write to a file: $pdf->write_file('testpdf.pdf'); Ergebnis: Code: (dl
)
1 C:\Arbeit>perl testpdf.pl Die Datei ariali.ttf liegt im gleichen Verzeichnis wie mein Perl Script und wurde aus dem Fonts Ordner von Windows rüber kopiert. Hat jemand eine Idee, was falsch läuft? Vielen Dank 10 print "Hallo"
20 goto 10 |