Menu

start to use serious html2pdf

Help
Tartesso
2005-09-12
2013-04-24
  • Tartesso

    Tartesso - 2005-09-12

    when I start to apply html2pdf to some of my pages I get
    theese errors:

    Fatal error: Call to undefined method
    HTML2FPDF::DisplayPreferences() in C:\Archivos de
    programa\Apache Group\Apache2
    \htdocs\fpdf\html2fpdf.php on line 155

    Notice: Undefined index: s in C:\Archivos de
    programa\Apache Group\Apache2
    \htdocs\fpdf\html2fpdf.php on line 392

    Notice: Undefined variable: e in C:\Archivos de
    programa\Apache Group\Apache2
    \htdocs\fpdf\html2fpdf.php on line 949

    Fatal error: Call to undefined method
    HTML2FPDF::SetTextOutline() in C:\Archivos de
    programa\Apache Group\Apache2
    \htdocs\fpdf\html2fpdf.php on line 2113

    whats wrong?????    

     
    • Tomi

      Tomi - 2005-09-14

      try this:

      <?
      require("html2fpdf.php");

      $html="
      <html>
      <title>Welcome</title>
      <body>
      <table border=\"1\" width=\"650\">
      <tr>
      <td>
      this is a test
      </td>
      </tr>
      </body>
      </html>
      ";

      $pdf=new HTML2FPDF();
      $pdf->AddPage();

      $pdf->WriteHTML($html);
      $pdf->Output(); //Outputs on browser screen

      ?>

      save this as test.php and place it into:
      \Apache Group\Apache2\htdocs\fpdf\

      in the same directory should be the files:
      fpdf.php
      gif.php
      html2fpdf.php
      source2doc.php
      htmltoolkit.php
      and the font directory

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.