간단한 FPDF 코드를 썼지 만 문제가 발생했습니다.FPDF 첫 번째 행 건너 뛰기
어떤 이유인지 루프에 대한 은 첫 번째 행 (셀 1, 셀 2, 셀 3)을 건너 뜁니다.
코드 :
<?php
require('temp/fpdf.php');
class PDF extends FPDF
{
function Header(){
$this->SetY(0);
$this->SetFont('Arial','I',8);
$this->Cell(0,5,'Page '.$this->PageNo(),0,0,'C');
}
function Footer(){
$this->SetY(-5);
$this->SetFont('Arial','I',8);
$this->Cell(0,5,'Page '.$this->PageNo(),0,0,'C');
}
}
$pdf = new PDF();
$pdf->SetMargins(0,0,0);
$pdf->AddPage();
$pdf->SetFont('Times','',12);
for($i=0;$i<=24;$i++){
$pdf->Cell(70,30,'Printing line number '.$i,0,0,'C');
if(($i%3==0)&&($i!=0)){
$pdf->Ln();
}
}
$pdf->Output();
?>
내가 시간에 대한 코드를 응시하고있어하지만 난 그래서 어떤 도움이 감사 답변을 찾을 수 없습니다.
작동, 감사합니다. – Vucko