From 61b73d49778e8f0fb172d5323e67677c9974e420 Mon Sep 17 00:00:00 2001 From: CWKSC Date: Sat, 3 Feb 2024 16:02:35 +0800 Subject: [PATCH] =?UTF-8?q?DOC:=20Typo=20`Polyline`=20=E2=86=92=20`PolyLin?= =?UTF-8?q?e`=20in=20adding-pdf-annotations.md=20(#2426)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/user/adding-pdf-annotations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user/adding-pdf-annotations.md b/docs/user/adding-pdf-annotations.md index 1bfcef470..d075d83e1 100644 --- a/docs/user/adding-pdf-annotations.md +++ b/docs/user/adding-pdf-annotations.md @@ -102,7 +102,7 @@ you can use {py:class}`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) @@ -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)