I am trying to create pdf files using shrimp. Inside my PDF template, I have tables with cells. In one of these cells I have an email address:
cell_email = pdf.make_cell(:content => booking.user_email, :border_width => 0)
I want to make an email for a link to a mailto link. I know that I can bind this way:
pdf.formatted_text([{:text => booking.user_email, :link => "mailto: #{booking.user_email}"}])
However, combining these two lines (providing formatted text as content) does not work:
cell_email = pdf.make_cell(:content => pdf.formatted_text([{:text => booking.user_email, :link => "mailto: #{booking.user_email}"}]), :border_width => 0)
Any ideas how I can solve this problem (create an email link inside a table cell)?
With respect and gratitude!
source share