chinapandaman / PyPDFForm

:fire: The Python library for PDF forms.
https://chinapandaman.github.io/PyPDFForm/
MIT License
315 stars 10 forks source link

Newline character not working when drawing text onto pdf #676

Closed RichardDev01 closed 6 days ago

RichardDev01 commented 1 week ago

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

chinapandaman commented 6 days ago

Hey sorry for responding late.

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

RichardDev01 commented 6 days ago

Yes, thank you! This isue has been resolved