Skip to content

Instantly share code, notes, and snippets.

@Dysp
Created March 25, 2016 18:03
Show Gist options
  • Save Dysp/8e0b6a88eafb69d0c927 to your computer and use it in GitHub Desktop.
Save Dysp/8e0b6a88eafb69d0c927 to your computer and use it in GitHub Desktop.
Prawn::Errors::CannotFit: Prawn::Errors::CannotFit
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/line_wrap.rb:199:in `update_output_based_on_last_fragment'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/line_wrap.rb:190:in `fragment_finished'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/line_wrap.rb:112:in `block in add_fragment_to_line'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/line_wrap.rb:96:in `each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/line_wrap.rb:96:in `add_fragment_to_line'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/line_wrap.rb:81:in `block in apply_font_settings_and_add_fragment_to_li
ne'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/arranger.rb:243:in `apply_font_size'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/arranger.rb:167:in `block in apply_font_settings'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/pdf-core-0.6.1/lib/pdf/core/text.rb:204:in `character_spacing'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/arranger.rb:160:in `apply_font_settings'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/line_wrap.rb:77:in `apply_font_settings_and_add_fragment_to_line'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/line_wrap.rb:49:in `wrap_line'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/wrap.rb:53:in `wrap'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/box.rb:511:in `block in shrink_to_fit'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/box.rb:502:in `loop'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/text/formatted/box.rb:502:in `shrink_to_fit'
... 18 levels...
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/squid-1.3.0/lib/squid/plotter.rb:19:in `block in box'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/document/bounding_box.rb:198:in `call'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/document/bounding_box.rb:198:in `init_bounding_box'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/document/bounding_box.rb:159:in `bounding_box'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/squid-1.3.0/lib/squid/plotter.rb:17:in `box'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/squid-1.3.0/lib/squid/graph.rb:25:in `draw'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/squid-1.3.0/lib/squid.rb:31:in `chart'
from excel.rb:32:in `block in <top (required)>'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/document.rb:226:in `instance_eval'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/document.rb:226:in `initialize'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/document.rb:142:in `new'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/prawn-2.1.0/lib/prawn/document.rb:142:in `generate'
from excel.rb:30:in `<top (required)>'
from (irb):133:in `load'
from (irb):133
from C:/Ruby22-x64/bin/irb:11:in `<main>'irb(main):134:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment