Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 getstringwidth 时获取 0 值。谁能帮我我的代码有什么问题?我做对了吗?
$pdf->GetStringWidth($txtLine[$x], $fntStyle, '', $fntSize);
只需传递文本,GetStringWidth()希望它会起作用
GetStringWidth()
$yourSting = "Come from you content"; $pdf->GetStringWidth($yourSting);