Skip to content

Commit

Permalink
DOC: Typo PolylinePolyLine in adding-pdf-annotations.md (#2426)
Browse files Browse the repository at this point in the history
  • Loading branch information
CWKSC authored Feb 3, 2024
1 parent f851a53 commit 61b73d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user/adding-pdf-annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ you can use {py:class}`PolyLine <pypdf.annotations.PolyLine>`:

```python
from pypdf import PdfReader, PdfWriter
from pypdf.annotations import Polyline
from pypdf.annotations import PolyLine

pdf_path = os.path.join(RESOURCE_ROOT, "crazyones.pdf")
reader = PdfReader(pdf_path)
Expand All @@ -111,7 +111,7 @@ writer = PdfWriter()
writer.add_page(page)

# Add the polyline
annotation = Polyline(
annotation = PolyLine(
vertices=[(50, 550), (200, 650), (70, 750), (50, 700)],
)
writer.add_annotation(page_number=0, annotation=annotation)
Expand Down

0 comments on commit 61b73d4

Please sign in to comment.