How to set up a flowable(paragraph) by specifying a flame

23 views
Skip to first unread message

Miyake Saori

unread,
Mar 28, 2024, 10:41:42 PMMar 28
to reportlab-users
Hi,

Is there any way to set up a Flowable with Flame specified?



ex:
frames=[Frame( 30*mm, 120*mm, 110*mm, 60*mm, showBoundary=1, id=frame1),
        Frame(160*mm, 120*mm, 110*mm, 60*mm, showBoundary=1, id=frame2),
        Frame( 30*mm,  30*mm, 110*mm, 60*mm, showBoundary=1, id=frame3)]


img1 = Image('c:/***'+"img1.png", hAlign='CENTER', width=20*mm, height=10*mm)

para_style =  {"name":"normal", "fontName":"Times-Bold", fontSize":12*mm, "leading":12*mm, "firstLineIndent":12*mm}
text1 = Paragraph("hello world!!", para_style)
text2 = Paragraph("Let's start!", para_style)


For example, suppose we have the above Flame and flowable,
I want to "specify" img1 in frame1, text1 in frame2, and text2 in frame3.

I checked the documentation, but could not find a way to specify a specific Frame.
Please let me know if there is a way to do this.


Also, what is the 'id' used for in the Frame argument?
Reply all
Reply to author
Forward
0 new messages