plangrid / pdf-annotate

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

Fix bounding box computation for PointsAnnotation #55

Closed danielzuegner closed 4 years ago

danielzuegner commented 4 years ago

The bounding boxes for PointsAnnotations are not correct, and this pull request fixes it. This mostly has an effect on Ink annotations, where the bounding boxes are visible when selecting them in a PDF viewer.

To see this, compare the bounding boxes of an Ink annotation generated by this version and the old version.

Let me know in case you have any questions.

Best,

Daniel