pdf-export mit css-inhalt

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
rainer12
Posts: 4
Joined: Sat Oct 27, 2007 9:22 pm

pdf-export mit css-inhalt

Post by rainer12 »

Hallo,

habe meine FAQ-Texte in CSS/HTML eingebettet.
Angezeigt wird alles ganz normal, inkl. Formatierung, aber im Export zu PDF erscheint weder die CSS-Formatierung, noch klappen Zeilenumbrüche richtig.
Teilweise stehen 3-4 Zeilen übereinander, also alles sehr unleserlich.

Ist das schon bekannt? Bzw. gibts da einen Lösungsansatz?

Benutzen tu ich hier die 2.0.3.
Das Problem hatte ich auch schon mit 1.6er Version, nur hab ich da die PDF-Exporte noch nicht gebraucht.

vielen Dank schon mal im voraus
Rainer
rainer12
Posts: 4
Joined: Sat Oct 27, 2007 9:22 pm

Post by rainer12 »

Hallo nochmal,

hab jetzt mal etwas weiter gesucht und Beiträge gefunden, die mir vorher gar nicht so aufgefallen sind, betreffs HTML-Tabellen und PDF-Export.

Hier also mal eine Vorlage mit Tabellen und div-Elementen, die ich für einige Texte verwende.
Ohne diese Vorlage funktioniert die PDF-Ausgabe wunderbar.
Natürlich könnte ich auch auf die Vorlage verzichten, so wichtig ist die auch nicht, aber da ich jetzt schon eine Menge Einträge drin habe, wäre es perfekt, wenn es eine Möglichkeit gibt, wie ich die Ausgabe auch so hinkriegen könnte.

Bin auf jeden Fall für jeden hinweis dankbar.
Grüße
Rainer

Code: Select all

<td>&nbsp;</td>
  </tr>

  <tr bgcolor="#ffffff"> 
    <td><table style="border: 1px solid rgb(0, 0, 0); margin-left: 10px; margin-right: 10px;" align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
        <tbody><tr bgcolor="#ffffcc" valign="top"> 
          <td style="border-bottom: 1px solid rgb(0, 0, 0);" width="85%"><div style="margin-left: 5px; margin-top: 3px; margin-bottom: 3px;"><strong>Beschreibung</strong></div></td>
        </tr>
        <tr valign="top"> 
          <td><div style="margin-left: 5px; margin-top: 3px; margin-bottom: 3px;"><br></div></td>
        </tr>
      </tbody></table></td>



  </tr>
  <tr bgcolor="#ffffff"> 
    <td bgcolor="#ffffff">&nbsp;</td>
  </tr>
  <tr bgcolor="#ffffff"> 
    <td bgcolor="#ffffff"><table style="border: 1px solid rgb(0, 0, 0); margin-left: 10px; margin-right: 10px;" align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
        <tbody><tr bgcolor="#ffffcc" valign="top"> 
          <td style="border-bottom: 1px solid rgb(0, 0, 0);" width="85%"><div style="margin-left: 5px; margin-top: 3px; margin-bottom: 3px;"><strong>Lösung</strong></div></td>
        </tr>
        <tr valign="top"> 
          <td><div style="margin-left: 5px; margin-top: 3px; margin-bottom: 3px;"><br></div></td>
        </tr>
      </tbody></table></td>
  



</tr>
  <tr bgcolor="#ffffff"> 
    <td bgcolor="#ffffff">&nbsp;</td>
  </tr>
  <tr bgcolor="#ffffff"> 
    <td bgcolor="#ffffff"><table style="border: 1px solid rgb(0, 0, 0); margin-left: 10px; margin-right: 10px;" align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
        <tbody><tr bgcolor="#ffffcc" valign="top"> 
          <td style="border-bottom: 1px solid rgb(0, 0, 0);" width="85%"><div style="margin-left: 5px; margin-top: 3px; margin-bottom: 3px;"><strong>Download</strong></div></td>
        </tr>
        <tr valign="top"> 
          <td><div style="margin-left: 5px; margin-top: 3px; margin-bottom: 3px;"><br></div></td>
        </tr>
      </tbody></table></td>
  
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

für die 2.5 planen wir eine Verbesserung des PDF-Exports.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rainer12
Posts: 4
Joined: Sat Oct 27, 2007 9:22 pm

Post by rainer12 »

Hi Thorsten,

wunderbar, hört sich gut an. Vielen Dank schon mal im voraus und auch für die bisherige super Arbeit.

Grüße
rainer
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

wobei ich aber sagen muss, dass HTML -> PDF nicht gerade trivial ist...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rainer12
Posts: 4
Joined: Sat Oct 27, 2007 9:22 pm

Post by rainer12 »

Hi,

kein Problem, werd ich dann erleben. Würde ja auch gerne in der Richtung mithelfen und auch coden, aber coden ist bei mir schon so lange her, dass ich nicht wirklich eine große Hilfe wäre.
...und wenns nichts wird, bei der nächsten Version, dann werde ich wohl mal versuchen, die bisherigen Artikel von HTML zu befreien.
...oder gibts da evtl. schon eine Lösung, wie ich bestehende Artikel befreien kann ohne vielleicht alle aufrufen zu müssen?

Grüße
rainer
Post Reply