0

创建 PDF 时如何自动换行长字(不带空格)?

示例单词 = Hellooooooooooooooooooooooooooo

我试过这个

// This is for each column    
$this->sheet->getColumnDimension($columnID)->setWidth(10);

// This is for full data cells ranges.
$this->sheet->getStyle($fullRange)->getAlignment()->setWrapText(true);

它适用于 Excel 输出,但不适用于 PDF 输出。

4

0 回答 0