text_box("#{@worker.email}", at: [400, 700], :inline_format => true)
I usedtext_box(icon('fa-envelope'), at: [400, 700], :inline_format => true)
Prawn::Document.generate('test.pdf') do |pdf|
pdf.bounding_box([400, 700], height: 50, width: 50) do
pdf.icon 'fa-envelope', valign: :center, align: :center
pdf.stroke_bounds # if you want to visualize the box
end
end