Domanda

@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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top