Skip to content

Remove watermark PageObject declaration as it is already present inside for-loop#1384

Merged
MartinThoma merged 1 commit into
py-pdf:mainfrom
cs2sandeep:watermark_docs
Oct 8, 2022
Merged

Remove watermark PageObject declaration as it is already present inside for-loop#1384
MartinThoma merged 1 commit into
py-pdf:mainfrom
cs2sandeep:watermark_docs

Conversation

@cs2sandeep

Copy link
Copy Markdown
Contributor

reader_stamp = PdfReader(stamp_pdf)
image_page = reader_stamp.pages[0]

PageObject of the watermark is declared inside the for loop. It is not needed outside the for-loop.

@MartinThoma
MartinThoma merged commit 7faa9b3 into py-pdf:main Oct 8, 2022
@MartinThoma

Copy link
Copy Markdown
Member

You're absolutely right - thanks for fixing it!

@cs2sandeep
cs2sandeep deleted the watermark_docs branch October 8, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants