Replies: 1 comment 3 replies
-
The prawn manual builder uses a helper method to create the colored boxes, see https://github.com/prawnpdf/prawn-manual_builder/blob/master/lib/prawn/manual_builder/example.rb#L328. Also see page 55 of the Prawn manual on |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I see this question has been asked many times. And always closed without being resolved.
So I'll ask again. How do you set the background color of a text_box?
If it's not totally simple e.g.
pdf.text_box, 'some text', background_color: 'BEBEBE'
then it should be made to be totally simple.The documentation gives no clue. The closest mention is formatted_text_box, but that only allows you do set the color of the text, not the background color of the box.
Beta Was this translation helpful? Give feedback.
All reactions