HTML2FPDF -定位writeHTML输出


HTML2FPDF - Positioning the writeHTML output

我有以下代码:

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中的写入内容?

在FPDF中可以使用SetX(), setty()或SetXY()