chinapandaman/PyPDFForm

Newline character not working when drawing text onto pdf

Closed this issue · 2 comments

Version

PyPDFForm=1.4.28

Issue Description

Newline characters not working with drawtext.

i get [] in the pdf

Code Snippet

    pdf = pdf.draw_text(
        text="test\ntest\n test",
        x=50,
        y=650,
    )

Screenshots (if applicable)

image

Hey sorry for responding late.

This should be fixed now in v1.4.29. Give the newest version a try and let me know.

Yes, thank you!
This isue has been resolved