Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watermark only a page #119

Closed
geraluca opened this issue Mar 2, 2023 · 8 comments · Fixed by #181
Closed

Watermark only a page #119

geraluca opened this issue Mar 2, 2023 · 8 comments · Fixed by #181
Labels
enhancement New feature or request

Comments

@geraluca
Copy link

geraluca commented Mar 2, 2023

Hello, is it possible to insert the watermark only on a specific page?

@PrzemyslawKlys
Copy link
Member

I've not tried but I guess you would need to add a section and add watermark to section.

@geraluca
Copy link
Author

geraluca commented Mar 2, 2023

I already tried, I created a new section and I added the watermark in the new section, the watermark appears throughout the document

@PrzemyslawKlys
Copy link
Member

Then it's either not possible (can it be done in Word?) or requires some code changes.

@geraluca
Copy link
Author

geraluca commented Mar 2, 2023

I in Word can not do it but I know that you can do, I also read on the Microsoft site

@PrzemyslawKlys
Copy link
Member

Unless you provide a sample document showing this and some kind of docs to confirm it's hard to help. If you say "in word you can't do it I doubt you can do it outside of word. Maybe it's just image that is sized as whole page and added in header being behind text and this acts as a watermark.

@PrzemyslawKlys
Copy link
Member

I was able to add 3 custom watermarks (one one 1st page, one on 2nd page and one that goes on all pages). So it's definitely possible to do it in Word. The question is how to do in code.

3 watermarks.docx

@PrzemyslawKlys
Copy link
Member

image

So it seems if you put watermark in header it's on all pages but if you put it between Paragraphs it's going to afect only certain pages.

@PrzemyslawKlys
Copy link
Member

PR was created to address this issue. See PR for details on changes (including breaking changes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants