[reportlab-users] Left Justifying an image

Chorny, Ilya ichorny at illumina.com
Wed Feb 29 14:24:35 EST 2012


I will answer my own question. The Image class has and hAlign attribute that is set to 'CENTER' by default. When set to 'RIGHT' it aligns it to the right.

From: reportlab-users-bounces at lists2.reportlab.com [mailto:reportlab-users-bounces at lists2.reportlab.com] On Behalf Of Chorny, Ilya
Sent: Tuesday, February 28, 2012 5:24 PM
To: reportlab-users at lists2.reportlab.com
Subject: Re: [reportlab-users] Left Justifying an image

Does anyone know how to right justify an image using platypus? I want to put the image in the right hand corner instead of the center.

I am using the SimpleDocTemplate("form_letter.pdf",pagesize=letter,
rightMargin=72,leftMargin=72,
topMargin=72,bottomMargin=18)

Thanks,

Ilya


From: Chorny, Ilya
Sent: Thursday, February 16, 2012 11:47 AM
To: reportlab-users at lists2.reportlab.com<mailto:reportlab-users at lists2.reportlab.com>
Subject: Placing a table in a document

Do I have to use SimpleDocTemplate to place table? Can I create a table and place it using:

outpdf = canvas.Canvas("file.pdf",pagesize = letter)
t =Table()
outpdf.draw?(t)




Ilya Chorny Ph.D.
Bioinformatics Scientist I
Illumina, Inc.
9885 Towne Centre Drive
San Diego, CA 92121
Work: 858.202.4582
Email: ichorny at illumina.com<mailto:ichorny at illumina.com>
Website: www.illumina.com<http://www.illumina.com>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20120229/ab236c03/attachment.htm>


More information about the reportlab-users mailing list