Resize columns automatically in PDF report
3 次查看(过去 30 天)
显示 更早的评论
I am generating a PDF report from a matlab table in a “FormalTable” style but the coloumns width does not get resized automatically. I tried to use the class “mlreportgen.dom.ResizeToFitContents” to resize the columns of a table. But this doesn’t work with the PDF document reports. Any help here would be appreciated.
0 个评论
回答(1 个)
Akash
2024-7-12
Hi,
Starting from MATLAB R2017a and newer versions, the "ResizeToFitContents" method works correctly for resizing columns in PDF documents.
As a workaround, you can manually resize the columns at runtime by setting the width of each column proportional to the longest word in the column.
For more information, you can refer to the following article on MATLAB Central:-
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Title Pages, Tables of Contents, Lists of Figures, Tables, and Captions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!