Zum Inhalt springen

Empfohlene Beiträge

Geschrieben

Hallo,

Ich bin gerade dabei PHP und htmldoc für PDFs ans laufen zu bringen nur will des Patu nicht :-(

Mein PHP Code das HTMLdoc ist im gleichen dir.


$htmldoc_binary = "htmldoc.exe";//Name of the Binary, on Windows it is maybe htmldoc.exe
$htmldoc_path = "C:\apachefriends\\xampp\\htdocs\\test_pdf\\pdf\\htmldoc\\";//Changes this if you want binary in other location than includes
$htmldoc = $htmldoc_path.$htmldoc_binary;
echo 'Html Doc: '.$htmldoc;

$article = 'http://heise.de';
//echo '<br>'.$htmldoc." --no-localfiles --datadir ".$htmldoc_path." --no-compression -t pdf13 --jpeg --webpage --header lcr --footer ./. --size a4 --left 0.5in '$article'";
header( "Content-Type: application/pdf" );
header( "Content-Disposition: inline; filename=\"pdf-mambo.pdf\"" );
flush();
passthru( $htmldoc." --no-localfiles --datadir ".$htmldoc_path." --no-compression -t pdf13 --jpeg --webpage --header lcr --footer ./. --size a4 --left 0.5in '$article'" );

[/PHP]

Beim Aufsühren kommt ein Weißer Bildschrim mehr nicht ich bin langsam echt am verzweifeln :-(

Gruß Badgott

Erstelle ein Benutzerkonto oder melde Dich an, um zu kommentieren

Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde Dich hier an.

Jetzt anmelden

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...