duanpai1033 2014-02-19 11:21
浏览 325

我想在php multicell中使用pdf函数,在一行并行单元格文本左上对齐

into cell tag how can i use text in left top if the text block is large. there is the main problem in Multicell i can't use twomulticell parallel .

  $pdf->MultiCell(60, 6, "".$row['particular'], 1, 'L', FALSE);
    $pdf->Cell(40,50,"".$row['quantity'],1,0,"l");
  • 写回答

1条回答 默认 最新

  • duanping1920 2014-02-20 08:02
    关注

    The MultiCell method has no $ln parameter like the Cell method (Just a side note: Internally a MultiCell creates the lines by several Cell calls). If you need to stay at the same line with a multicell you have to do this with your own logic. E.g.:

    $y = $pdf->GetY();
    $x = $pdf->GetX();
    $width = 60;
    $pdf->MultiCell($width, 6, 'particular', 1, 'L', FALSE);
    $pdf->SetXY($x + $width, $y);
    $pdf->Cell(40,50, 'quantity', 1, 0, "l");
    
    评论

报告相同问题?

悬赏问题

  • ¥15 workstation加载centos进入emergency模式,查看日志报警如图,怎样解决呢?
  • ¥50 如何用单纯形法寻优不能精准找不到给定的参数,并联机构误差识别,给定误差有7个?matlab
  • ¥15 workstation加载centos进入emergency模式,查看日志报警如图,没有XFS,怎样解决呢?
  • ¥15 应用商店如何检测在架应用内容是否违规?
  • ¥15 Ubuntu系统配置PX4
  • ¥50 nw.js调用activex
  • ¥15 数据库获取信息反馈出错,直接查询了ref字段并且还使用了User文档的_id而不是自己的
  • ¥15 将安全信息用到以下对象时发生以下错误:c:dumpstack.log.tmp 另一个程序正在使用此文件,因此无法访问
  • ¥15 速度位置规划实现精确定位的问题
  • ¥15 MAC虚拟机(win11)USB插上后无串口com,无法烧录