pypdflib-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pypdflib-dev] Alignment of text


From: Murthy Raju
Subject: [pypdflib-dev] Alignment of text
Date: Wed, 4 Jan 2012 09:15:07 +0530

Hi,

I am trying to control the alignment of  text in the header, footer and inside a cell. Excerpts of the code are below:

...
header = Header(text_align = pango.ALIGN_CENTER)
header.set_text("My Header")
pdf.set_header(header)
....
footer = Footer(text_align = pango.ALIGN_CENTER)
footer.set_text("My Footer")
....
cell = Cell(Text("%.2f" % amount), font_size=7, width=75, text_align = pango.ALIGN_RIGHT)
.....

All text in the resulting pdf is left aligned. The text_align values do not seem to have an impact. What is the recommended way of controlling alignment in free flowing text sections, headers, footers and inside cells of a table?

Thanks and Regards,
Murthy Raju


reply via email to

[Prev in Thread] Current Thread [Next in Thread]