【发布时间】:2023-04-02 17:00:01
【问题描述】:
我正在使用 Prawn 生成 pdf,我必须在表格的单元格中插入图像。
我的代码是这样的:
image = "path to file"
subject = [["FORMATIVE I "," SUMATIVE ","GRAPH"],
[formative_1,sumative, {:image => image}]
]
table subject
但是,我收到一条错误消息:
prawn/table/cell.rb:127:in `make': Content type not recognized: nil (ArgumentError)
我该如何解决这个问题?任何帮助是极大的赞赏。
干杯!
【问题讨论】:
-
verdure,你有没有想过这个问题或找到解决办法?