I was trying to create a pdf file using prawn in Rails 4. I needed to have vertical text as header row for a table with large width. Because if I use horizontal row heading, the table won't fit (The contents of the tables are text with 1 or 2 characters).
I tried using rotate
option for prawn-table. But that only works when I set the width enough to hold the text while it is still in horizontal direction. But then it is a waste of space when I want it in vertical. But If I reduce the width of the column header the texts break.
It seems to be a bug reported here https://github.com/prawnpdf/prawn/issues/409. And it seems this pull request solves the issue https://github.com/prawnpdf/prawn-table/pull/32.
But since I'm using prawn-rails
, it is difficult to me to change the gem to use that pull request, which has not yet merged to the master.
How should I proceed to solve this problem?