php.de

Zurück   php.de > Webentwicklung > PHP-Fortgeschrittene

PHP-Fortgeschrittene Arbeiten mit PHP ohne Einschränkungen

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 23.09.2005, 09:30  
Neuer Benutzer
 
Registriert seit: 02.09.2005
Beiträge: 9
joni1980
Standard Problem bei der PDF Generierung HTML2PDF von rustyparts.com

Hallo!

Ich hoffe irgendwer kennt sich mit meinem Problem aus. Ich möchte gerne PDF Dateien erstellen. Diese PDFs sollen mit dem Tool HTML 2 PDF von Rustyparts.com erstellt werden.

Seit 3 Tagen bastel ich nun mit meinem Problem herum. Ich habe einen Windows 2000 Server, und PHP 5.0 installiert (ja, windows und PHP). Zusätzlich nat. die Klasse PHPToPDF inkl. der benötigten Tools.

Das parsen der HTML Datei ist wohl, so weit ich das überblicken kann erfolgreich. Das erstellen der PDF Datei allerdings schlägt fehl. Die benötigten HTML und tmp die temporär angelegt werden, werden auch alle erstellt. Nur das ausführen von (glaub ich) Ghostscript macht Probleme.

Hat irgendwer schon mal Erfahrung mit diesem Tool bzw. mit der Problemstellung HTML Dateien zu PDF zu konverteiren gesammelt? Gibt es evtl. andere gute Klassen etc. in PHP?

THANX, joni!


Folgende Fehlermeldung bekomme ich:

Code:
DEBUG: html2ps config: 
        @html2ps {
          
        option {
          titlepage: 0;         /* do not generate a title page */
          toc: 0;               /* no table of contents */
          colour: 1; /* create the page in color */
          underline: 1;         /* underline links */
          grayscale: 0; /* Make images grayscale? */
          scaledoc: 1; /* Scale the document */
        }
        package {
          geturl: C:\Inetpub\wwwroot\test\system\curl-7.14.0\curl.exe; /* path to the geturl */
        }
        showurl: 0;             /* do not show the url next to links */
header {
  left: "$T"
  right: "$[author]"
  color: "blue"
  odd-left: "$T"
  even-left: "$T"
  odd-right: "$[author]"
  even-right: "$[author]"
}
footer {
  center: "- $N -"
  left: "Generated by HTML_ToPDF"
  right: "cxcD"
  odd-left: "Generated by HTML_ToPDF"
  even-left: "Generated by HTML_ToPDF"
  odd-right: "cxcD"
  even-right: "cxcD"
  odd-center: "- $N -"
  even-center: "- $N -"
}
        }
        
@page {
  size: 8.5in 11in;
}

DEBUG: html2ps command run: C:\Perl\bin\perl.exe -c C:\Inetpub\wwwroot\test\system\html2ps-1.0b4\psparser\bin\html2ps.pl  -f C:\WINNT\TEMP\CON1CC.tmp -o C:\WINNT\TEMP\PS-1CE.tmp C:\WINNT\TEMP\HTM1CD.tmp.html 2>&1
DEBUG: html2ps output: C:\Inetpub\wwwroot\test\system\html2ps-1.0b4\psparser\bin\html2ps.pl syntax OK
DEBUG: ps2pdf command run: C:\Programme\gs\gs8.51\bin\gswin32c.exe -sPAPERSIZE=letter -I  -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode C:\WINNT\TEMP\PS-1CE.tmp '/media/pdf/timecard.pdf' 2>&1
DEBUG: ps2pdf output: AFPL Ghostscript 8.51 (2005-04-18)
Copyright (C) 2005 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /rangecheck in --.peekstring--
Operand stack:
   --nostringval--   --nostringval--   (    )
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   --nostringval--
Dictionary stack:
   --dict:1124/1686(ro)(G)--   --dict:0/20(G)--   --dict:70/200(L)--
Current allocation mode is local
AFPL Ghostscript 8.51: Unrecoverable error, exit code 1
DEBUG: config file: C:\WINNT\TEMP\CON1CC.tmp (not removed)
DEBUG: html file: C:\WINNT\TEMP\HTM1CD.tmp.html (not removed)
DEBUG: ps file: C:\WINNT\TEMP\PS-1CE.tmp (not removed)
Error: there was a problem running the ps2pdf command. Error code returned: 1. setDebug() for more information.
[/b]
joni1980 ist offline   Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 23.09.2005, 15:22  
Erfahrener Benutzer
 
Registriert seit: 09.11.2004
Beiträge: 194
greenrover
greenrover eine Nachricht über ICQ schicken greenrover eine Nachricht über Yahoo! schicken
Standard

Läuft das ganze auch mit unter linux ???

und ist jakarta von nöten???

Ich suche eine gleiche Lösung
greenrover ist offline   Mit Zitat antworten
Alt 23.09.2005, 16:15  
Neuer Benutzer
 
Registriert seit: 02.09.2005
Beiträge: 9
joni1980
Standard

Also laut der Beschreibung läuft es auch unter Linux.

Systemvorraussetzung sind auf der seite genau beschrieben.. (www.rustyparts.com)

Ich habe zwischenzeitlich auch eine anderes Tool gefunden:
http://www.easysw.com/htmldoc/ -> das scheint ganz gut zu sein. Auf der cmd Zeile läuft es bei mir such schon. Allerdings im web noch nicht.
joni1980 ist offline   Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Timestamp problem phrain PHP Tipps 2008 2 04.04.2008 09:41
Problem mit CAPTCHA patEwing PHP Tipps 2008 0 11.02.2008 21:57
datensätze defekt oder problem mit dem einlesen? Ministry Datenbanken 4 06.07.2006 18:42
Problem mit Formular und Generierung einer Seite PHP Tipps 2006 12 08.02.2006 18:51
problem!!! PHP Tipps 2006 6 08.02.2006 11:06
[Erledigt] wieder ein Problem bei phpmailer und smtp PHP Tipps 2006 24 07.02.2006 01:07
Array Problem [Ansatz ?] PHP Tipps 2005 0 27.01.2005 18:24
[Erledigt] Problem bei Massenmails versenden mit der Funktion mail PHP-Fortgeschrittene 3 19.01.2005 13:36
[Erledigt] Problem mit Übergabe einer Klasse in PHP4 PHP-Fortgeschrittene 10 08.01.2005 21:00
Problem mit Weiterleitung PHP Tipps 2004-2 16 22.12.2004 17:49
Smarty und PHP-Skript Problem PHP Tipps 2004-2 2 03.12.2004 22:27
[Erledigt] PHP Upload (Master Value/Local Value Problem) PHP-Fortgeschrittene 5 23.11.2004 07:21
Cookie / localhost / Problem gelöst PHP-Fortgeschrittene 11 02.11.2004 22:41
Problem mit alter JavaScript-Funktion woods PHP Tipps 2004 1 13.08.2004 13:34

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
html2pdf footer, html2ps produced the following errors:, html2pdf tutorial, html2ps tutorial, html2fpdf header, html2ps produced the following errors, html2pdf debug, html2pdf header, html2fpdf footer, html2pdf error, ghostscript html2pdf, html2pdf problem: html2ps produced the following errors:, html2pdf ghostscript, \html2ps produced the following errors:\, allinkl ghostscript, debug html2ps, html2pdf problem, html2ps header, cmd html2pdf, html2pdf problem: html2ps produced the following errors: 

Alle Zeitangaben in WEZ +2. Es ist jetzt 20:41 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.