ueberschriften

This commit is contained in:
Martin Müller 2014-04-24 10:53:29 +02:00
parent c5fa02f17d
commit 18e8e943f5
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,8 @@
<?php <?php
App::import('Vendor','tcpdf/xtcpdf'); App::import('Vendor','tcpdf/xtcpdf');
ob_end_clean();
header("Content-type: application/pdf");
$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array('User'=>$application['WorkerUser'] $cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array('User'=>$application['WorkerUser']
,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity']))); ,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity'])));
@ -7,7 +10,6 @@ $cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array(
border-bottom:2px solid grey; border-bottom:2px solid grey;
width:100%; width:100%;
}</style>'; }</style>';
ob_end_clean();
$dev = 0; $dev = 0;
@ -100,5 +102,5 @@ foreach($application['Page'] as $page){
//$tcpdf->Output('filename.pdf','I'); //$tcpdf->Output('filename.pdf','I');
// TO Download // TO Download
$tcpdf->Output('filename.pdf','D'); $tcpdf->Output('filename.pdf','D');
return null;
?> ?>

View File

@ -1,12 +1,15 @@
<?php <?php
App::import('Vendor','tcpdf/xtcpdf'); App::import('Vendor','tcpdf/xtcpdf');
ob_end_clean();
header("Content-type: application/pdf");
$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>$WORKER)); $cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>$WORKER));
$cvinhalt .= '<style>span{font-style:italic;font-size:10px;}h1,h2,h3,h4,h5{ $cvinhalt .= '<style>span{font-style:italic;font-size:10px;}h1,h2,h3,h4,h5{
border-bottom:2px solid grey; border-bottom:2px solid grey;
width:100%; width:100%;
}</style>'; }</style>';
ob_end_clean();
$dev = 0; $dev = 0;
$tcpdf = new XTCPDF(); $tcpdf = new XTCPDF();