我在 Prawn 中使用 column_box。它运作良好,但与我在底部用于页脚的 bounding_box 重叠。
如何防止重叠,但不调整边界框的高度?
我可以更多地解释为什么我不想调整高度,但我认为它与这个问题无关。这是我的代码:
def test_section
column_box([0,cursor], :columns => 2, :width => 396) do
text ("This is text" * 10 + "This is too\n") * 25
stroke_color (50,0,50,0)
stroke_bounds
end
bounding_box [margin_box.left, margin_box.bottom + 72], :width => bounds.width, :height => 72 do
font "Helvetica" do
stroke_color (0,0,100,0)
stroke_bounds
text "And here's a sexy footer", :size => 16
end
end
end
谢谢你,安东尼