Skip to content

Loop in "fill_textbox()" method #927

@HelloKitty2022

Description

@HelloKitty2022
    text='111111111'

writer = fitz.TextWriter(page.rect, color=blue) # start a text writer
writer.fillTextbox( # fill in above text
fitz.Rect(0,10,300,800), # keep text inside this
text, # the text
# align=fitz.TEXT_ALIGN_JUSTIFY, # alignment
# warn=True, # keep going if too much text
fontsize=8,
font=font,
)
overtime,i try give the bigger rectangle ,no use . try delete some words,it works,
i roll back to 1.18.8 it works without delete words

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions