the rails controller the generates the pdf has the following code...
pdf = Prawn::Document.new(page_size: "A4",margin: [0,0,0,0])
pdf.font_families.update("Century" => {
:normal => "#{Rails.root}/app/assets/fonts/century_normal.ttf",
:bold => "#{Rails.root}/app/assets/fonts/century_bold.ttf"
})
pdf.font "Century"
# pdf.fill_color "0000ff"
pdf.text_box "Mr Nobody", :at => [100, 600], :align => :center, size: 25, style: :bold, color: '#3172bd'
send_data pdf.render, filename: 'report.pdf', type: 'application/pdf'