I have created a table in prawn and wanted to pass the :position
option by whih is also documented in the manual but it throws off an Method_missing
error. It seems like this parameter doesnt exist anymore. How can I center a table in prawn?
I ran into the same error. Installing from master on Github fixed the issue.
# Gemfile
gem 'prawn', git: 'https://github.com/prawnpdf/prawn.git'
Issue thread on Github
Hope this helps
pdf.table tablename,
:border_width => 0,
:font_size => 11,
:position => :center
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With