我在生成/导出pdf时工作 . ('group'=>true)

如何在pdf中制作组?

[
   'headerOptions' => ['style' => 'color:# ;text-align:center;'],
   'attribute' => 'subject_name',                                            
   'contentOptions' => ['style' => 'min-width:180px;'],
   'format' => 'raw',                                                                
   'group' => true,
]                 `

我在网格视图中使用上面的代码,它在视图文件中对主题名称进行分组,并且在Kartik导出中也可以正常工作,但是“当我使用单独的pdf文件时,它在mpdf文件中不起作用 .

enter image description here

谢谢!