As it turns out, our project was using Prawn 0.8.4
, which (it seems) does not support Prawn::Graphics#Dash
(although the method is present, which is sort of weird). I managed to solve this problem by using the following Gist: https://gist.github.com/henrik/204854
Prawn Dash not working properly
Pergunta
@pdf.dash(space: 10, phase:0)
@pdf.draw_horizontal_line 50, 500, at: 220
This draws a horizontal line with no dash, what am I doing wrong?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow