PDF Prawn: opening a link in a new tab

240 Views Asked by At

I'm trying to open the following link, that is created in a PDF (which is automatically opened in a browser), in a separate tab - I am using Prawn PDF.

  pdf.formatted_text_box [{
    text: t('link'),
    link: @object.attribute.first.link,
    target: '_blank',
    align: :center,
    valign: :center
  }], at: [5, 17], width: 155, height: 25

I've tried variations of target: '_blank' or target: :_blank, but to no avail.

Does anyone have an idea?

Thanks, Nick :)

0

There are 0 best solutions below