Closed rusllonrails closed 6 years ago
Prawn doesn't patch built-in classes by default. You need to require prawn/peasurement_extensiosn
.
I will close the issue now. Feel free to reopen if you feel like you issue has not been resolved.
Thanks man :+1:
You are right. :beer: Tested :heavy_check_mark: , works if I add:
require "prawn/measurement_extensions"
Hey team :wave:
Tried to use prawnpdf in new Rails 5.2.1 / Ruby 2.5.3 application. It works, but when I'm trying to use millimeters for Integer, for example:
or
or
I'm getting following issue:
In my Gemfile:
In Gemfile.lock I see versions for prawn:
I also tried to use another versions of Prawn and Prawn table gems.
I tested with:
and with:
Same issue.
I prepared small testing snippet which allows to test issue quicker:
My testing output:
1) PDF generated - all good.
2) Trying to add 'move_down 2.mm' and getting issue.
Thanks in advance, appreciate any help :beer: