diff --git a/docs/user/add-watermark.md b/docs/user/add-watermark.md index d581c86fb..e41172d6a 100644 --- a/docs/user/add-watermark.md +++ b/docs/user/add-watermark.md @@ -20,5 +20,5 @@ writer.add_page(page) # finally, write the new document with a watermark with open("PyPDF2-output.pdf", "wb") as fp: - output.write(fp) + writer.write(fp) ```