-
Beta Was this translation helpful? Give feedback.
Answered by
gettalong
Aug 25, 2024
Replies: 1 comment 1 reply
-
Have you tried using a grid? require 'prawn'
require 'prawn/table'
Prawn::Document.generate('tables.pdf') do·
define_grid(columns: 3, rows: 1, gutter: 10)
grid(0, 0).bounding_box do
table([['a1', 'b'], ['c', 'd']])
end
grid(0, 1).bounding_box do
table([['a2', 'b'], ['c', 'd']])
end
grid(0, 2).bounding_box do
table([['a3', 'b'], ['c', 'd']])
end
end Result: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pethl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried using a grid?
Result: