Вопрос

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

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top