In response to the bold text ...
In the controller:
reply_to do | format | format.pdf {render: layout => false} prawnto: filename => @current_project + ". pdf" ,: prawn => {: font => 'Times-Roman'},: inline => false
end
Then in the pdf.prawn file you can use:
in the text box:
pdf.text_box "Document revisions" ,: size => 16 ,: style =>: bold ,: at => [0.mm, 10.mm] ,: width => 100.mm ,: height => 15.mm ;
or in a separate line of text:
pdf.text "Document content" ,: size => 16 ,: style =>: bold;
As I understand it, but have not tried - emphasize what you need to do:
: styles => [: bold ,: underline];
confirm this link for more
This is not a function of version 0.8.4, but version 0.10.2 - you donโt know how you will emphasize in 0.8.4. I am not currently using 0.10.2, so I cannot confirm that this works.
Based on what you said, I think this is what you want for bold:
pdf.text_box "#{@yourtext.text}" ,: size => 16 ,: style =>: bold ,: at => [0.mm, 10.mm] ,: width => 100.mm ,: height => 15.mm;