plangrid / pdf-annotate

Pure-python library for adding annotations to PDFs
MIT License
191 stars 45 forks source link

Align text? #79

Open jesusignazio opened 1 year ago

jesusignazio commented 1 year ago

Is it possible to center a text?

a.add_annotation(
            'text',
            Location(x1=455, y1=820, x2=900, y2=500, page=0),
            Appearance(stroke_color=(0, 0, 0), font_size=8, stroke_width=0, align="Middle" content="Text", fill=(0, 0, 0))
        )