[reportlab-users] Canvas Size

John Pywtorak reportlab-users@reportlab.com
Mon, 26 Jul 2004 14:08:37 -0700


On Monday 26 July 2004 07:31 am, Jody Burgess wrote:
> Good Morning;
> 	I have another newbie question:
> 1) is there a way to set canvas &/or page properties based on the size and
> resolution of an image that is being imported?
>
> For example; if I have several TIF images that were scanned as 8.5x11" and
> some that were scanned as 8.5x14" and some that were scanned as 11x17" is
> there a way to set the size and format (landscape of portrait) of each page
> prior to it being created in the target PDF file?
>

I would think so.  If PIL exposes those attributes then you can set your sizes 
in the constructor to the DocTemplate if using platypus which should 
translate to pdfgen easily.  I set the size albeit, not dynamic in the 
SimpleDocTemplate constructor.

Johnny P

-- 
Windows
Start Here
Frustrating Hanging Crashing
Blue Screen of Death
Reboot