33 lines
724 B
Plaintext
33 lines
724 B
Plaintext
|
<?php
|
||
|
App::import('Vendor','tcpdf/xtcpdf');
|
||
|
ob_end_clean();
|
||
|
$tcpdf = new XTCPDF();
|
||
|
|
||
|
$tcpdf->SetAuthor("Miconware");
|
||
|
$tcpdf->SetAutoPageBreak( false );
|
||
|
// add a page (required with recent versions of tcpdf)
|
||
|
$tcpdf->AddPage();
|
||
|
|
||
|
// Now you position and print your page content
|
||
|
// example:
|
||
|
$tcpdf->SetY(35);
|
||
|
$tcpdf->SetTextColor(0, 0, 0);
|
||
|
$tcpdf->SetFont($tcpdf->font);
|
||
|
$tcpdf->Cell(0,0, "Hello World", 0,1,'L');
|
||
|
|
||
|
$tcpdf->title='Anschreiben';
|
||
|
$tcpdf->AddPage();
|
||
|
$tcpdf->SetY(35);
|
||
|
$tcpdf->SetTextColor(0, 0, 0);
|
||
|
$tcpdf->SetFont($tcpdf->font);
|
||
|
$tcpdf->Cell(0,0, "Hello World", 0,1,'L');
|
||
|
// ...
|
||
|
// etc.
|
||
|
// see the TCPDF examples
|
||
|
|
||
|
echo $tcpdf->Output('filename.pdf');
|
||
|
// TO Download
|
||
|
//echo $tcpdf->Output('filename.pdf','D');
|
||
|
|
||
|
?>
|