How to fix ("pdf" is not a class/module).

22 views
Skip to first unread message

Diego Bertaso

unread,
Jan 20, 2021, 1:27:20 PM1/20/21
to Prawn
Hello everybody.

How can I fix the error  ("pdf" is not a class/module) on rails 3.2.6 and ruby 2.3.8 when try generate a pdf from an application rails 3.2.6.

Prawn::Document.generate "assignment.pdf" do |pdf|
   pdf.font "Times-Roman"
   pdf.draw_text content, :at => [200,720], :size => 32
end

Thanks in advance.

Best regards.
Reply all
Reply to author
Forward
0 new messages