Problem
I'm trying to build a PDF that has a colored background, but I don't believe that's currently possible with this library.
Adding background color to user_css gives me a background color, just not full-bleed to the edge of the page. I've tried setting margins to 0 on body, html, and @page, and setting width/height to 100%. I also can't get the background color to take the entire height of the page, if the content is only part of the page.
Request
When creating a Section(), it should have a background_color option. If it's set, when creating a new PDF page, first draw a rectangle with that background color before populating the page with anything else.
Problem
I'm trying to build a PDF that has a colored background, but I don't believe that's currently possible with this library.
Adding background color to
user_cssgives me a background color, just not full-bleed to the edge of the page. I've tried setting margins to 0 onbody,html, and@page, and settingwidth/heightto100%. I also can't get the background color to take the entire height of the page, if the content is only part of the page.Request
When creating a
Section(), it should have abackground_coloroption. If it's set, when creating a new PDF page, first draw a rectangle with that background color before populating the page with anything else.