Defect #7373
closedError with PDF output and ruby 1.9.2
0%
Description
Ruby version 1.9.2 (i386-mingw32)
RubyGems version 1.3.7
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root C:/Ruby/redmine
Environment production
Database adapter postgresql 8.2
Database schema version 20101114115359
When exporting an issue to PDF we are getting a string to integer error
TypeError (can't convert String into Integer):
lib/redmine/export/pdf.rb:246:in `block in issue_to_pdf
I've tracked the problem down to the MultiCell command, if I change it to Cell then it works OK but only prints on a single line.
After a little digging around I found the MutliCell command in the fpdf.rb file. I tracked the problem down to the following command
l=l+cw[c0]
I'm no Ruby developer so I wasn't sure of the fix but I could understand what it was trying to do, so I change the line to the following
l=l+500
I appreciate this will not fill the width of the document but its pretty close.
Is there a "proper" fix?
Related issues
Updated by Steve Fowler almost 14 years ago
Sorry, code in preformatted tags
l=l+cw[c[0]]
Updated by Jean-Philippe Lang almost 14 years ago
- Subject changed from Error with PDF output to Error with PDF output and ruby 1.9.2
- Category changed from Issues to Ruby support
- Status changed from New to Closed
- Target version set to 1.2.0
- Resolution set to Fixed
1.1.0 is not compatible with ruby1.9.2 but this error is fixed in trunk.