我有以下代码:
function convert($contents, $name){
echo($link); //prints nothing
$pdf=new HTML2FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10, "Entry Report");
$pdf->SetFont('Arial', '', 12);
$pdf->Cell(100,10, $_SESSION['currdate']);
$pdf->WriteHTML( $contents );
$pdf->Output($name, "D");
}
默认情况下,writeHTML内容位于顶部的PDF中...如何通过writeHTML函数来抵消pdf中放置的wrriten内容......