pdf.php 516 B

12345678910111213141516171819202122232425
  1. <?php
  2. define ('CLASS_DIR', "C:/Programme/Apache2/htdocs/qbuilder/pdf/");
  3. define ('GP_TITLE', "AHR Planner");
  4. $_POST['pdf_titel'] = GP_TITLE;
  5. include(CLASS_DIR."class.pdf_from_HTML.inc");
  6. if (isset($_POST['pdf']))
  7. {
  8. $pdf = new PDF_FROM_HTML('L', 'mm', 'A4');
  9. //Specified for Global Planner
  10. if (isset($_POST['pdf_feld']))
  11. {
  12. $pdf->setFeld($_POST['pdf_feld']);
  13. }
  14. //End of specification
  15. $pdf->AddFont('LucidaSansUnicode');
  16. $pdf->makePDF($_POST['pdf']);
  17. }
  18. ?>