fpdf 在每行后显示一个框


fpdf displays a box after every line

我正在研究fpdf来创建pdf

我使用以下代码:

$pdf = new tFPDF();
$questions = $_POST['question'];
$count = count($questions);
$quests = "";
$pdf->AddFont('DejaVu','','DejaVuSansCondensed.ttf',true);
$pdf->SetFont('DejaVu','',14);
$pdf->SetTextColor(50,60,100);
$pdf->AddPage('P');

$pdf->SetFontSize(12);
for($i=1;$i<=$count;$i++)
{
    $qus_id = $questions[$i-1];
    $get_q = "select * from `SelleXam_question` where `id`='$qus_id'";
    $get_q =  $wpdb->get_results($get_q);
    $questf = "Quest $i : ".$get_q[0]->question;
            $pdf->Cell(0, 10, iconv('UTF-8', 'windows-1252', $questf)."'n");                                if($get_q[0]->image !=='')      {           $pdf->Ln();         $path = plugins_url();          $imagenurl = $path.'/roque/uploads/'.$get_q[0]->image;                      $pdf->Cell(0, 10, $pdf->Image($imagenurl,$pdf->GetX()+60, $pdf->GetY() + 5,50,50), 0, 0, 'L','');       }
    $questf = "Option 1 : ".$get_q[0]->op1;
    $pdf->Ln();
    $pdf->Cell(0, 10, $questf."'n");
    $questf = "Option 2 : ".$get_q[0]->op2;
    $pdf->Ln();
    $pdf->Cell(0, 10, $questf."'n");
    $questf = "Option 3 : ".$get_q[0]->op3;
    $pdf->Ln();
    $pdf->Cell(0, 10, $questf."'n");
    $questf = "Option 4 : ".$get_q[0]->op4;
    $pdf->Ln();
    $pdf->Cell(0, 10, $questf."'n");
    $pdf->Ln();
    $pdf->Ln();
}
pdf

已创建,但是当我显示 pdf 时,会在行尾创建一个小框,pdf 的示例是:

http://www.provarapida.net.br/wp-content/plugins/roque/pdfs/03102015121244_q.pdf

如何删除这些盒子???

删除字符串末尾的"'"。Cell() 不支持多行,tFPDF 似乎错误地将字符子集化或缺少字形字符。