You are here: Sandbox » ChiliTest


  COLLECTION CollAbrEp
    EIGENSCHAFT EpProzent
    EIGENSCHAFT EpProzentBrutto
    EIGENSCHAFT Basis
    EIGENSCHAFT Ep
  COLLECTIONENDE

$p = PDF_new();

/* öffnet eine neue PDF-Datei; fügen Sie einen Dateinamen ein,
   um das PDF auf der Platte zu speichern */
if (PDF_begin_document($p, "", "") == 0) {
    die("Error: " . PDF_get_errmsg($p));
}

PDF_set_info($p, "Creator", "hallo.php");
PDF_set_info($p, "Author", "Rainer Schaaf");
PDF_set_info($p, "Title", "Hallo Welt (PHP)!");

PDF_begin_page_ext($p, 595, 842, "");

$font = PDF_load_font($p, "Helvetica-Bold", "winansi", "");

PDF_setfont($p, $font, 24.0);
PDF_set_text_pos($p, 50, 700);
PDF_show($p, "Hallo Welt!");
PDF_continue_text($p, "(sagt PHP)");
PDF_end_page_ext($p, "");

PDF_end_document($p, "");

$buf = PDF_get_buffer($p);
$len = strlen($buf);

header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=hallo.pdf");
print $buf;

PDF_delete($p);


<html>
  <head>
    <title>Hello World</title>
  </head>
  <body>
    <h1>Hello World</h1>
  </body>
</html>


SELECT EMP_ID, LAST_NAME 
FROM EMPLOYEE_TBL
WHERE CITY = 'DRESDEN' 
ORDER BY EMP_ID asc;


SELECT * FROM table_name;

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This website is using cookies. More info. That's Fine