2013-10-03 13 views
0

내가 작업했던 코드가 있습니다TCPDF 글꼴 간격

$pdf = new TCPDF('L', 'In', 'LETTER', true); 
$pdf->SetPrintHeader(false);  
$pdf->SetPrintFooter(false);  
$pdf->SetFont('Times','B',11); 
$pdf->AddPage(); 
$pdf->SetLeftMargin(0.5); 
$pdf->SetLineWidth(.04); 
$pdf->Rect(.5, .5, 10, 7.5); 
$pdf->SetLineWidth(.01); 
$pdf->Rect(.55, .55, 9.89, 7.39); 
$pdf->setFont('Times', 'BI', 31); 
$pdf->SetXY(0.5,0.9); 
$pdf->Cell(9.75, 0.5, 'Certificate of Completion',0,1,'C'); 
$pdf->setFont('Helvetica', 'B', 11); 
$pdf->SetXY(0.5,1.75); 
$pdf->Cell(9.75, 0.2, 'Course Work or Training in Infection Control',0,1,'C'); 
$pdf->Cell(9.75, 0.2, 'Approved by', 0, 1, 'C'); 
$pdf->Cell(9.75, 0.2, 'The New York State Department of Health &', 0, 1, 'C'); 
$pdf->Cell(9.75, 0.2, 'The New York State Department of Education', 0, 1, 'C'); 

지금 출력은 다음과 같습니다

$pdf->setFontSpacing(100); 
: Bad PDF

나는이 추가 시도를

하지만 스크립트를 실행하지 못했습니다.

무엇이 잘못 되었나요?

답변

0

사이트의 TCPDF 버전이 오래되었습니다.

최신 버전으로 업데이트되어 문제가 해결되었습니다.