[reportlab-users] Background color for entire page
   
    Andy Robinson
     
    reportlab-users@reportlab.com
       
    Wed, 8 Sep 2004 01:07:56 +0100
    
    
  
> Using platypus, I can't seem to find a way to set the background color 
> for the page as a whole.  I suppose I could try drawing a filled 
> rectangle using the canvas object.  Is there a better way?
I suggest you put this call in the page template (i.e subclass
PageTemplate or provide a drawPage callback) so you don't have to do
it on every page, but drawing a rectangle is the right 
way to do it.  (If we added a pageColor feature, we'd have to 
do it by drawing a rectangle too!)
- Andy