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

PDF watermark add/remove image #156

Open
seagrady2 opened this issue Apr 2, 2019 · 3 comments
Open

PDF watermark add/remove image #156

seagrady2 opened this issue Apr 2, 2019 · 3 comments

Comments

@seagrady2
Copy link

Is this possible to add a sample of this to the play ground if it is in fact possible? I've been having a difficult time taking the existing samples and modifying them to be able to add a watermark that sits on top of a page and then remove this watermark at a later time. I have quite a bit of faith that this is possible using the PDF writer but have had no luck in getting anything to work.

The main issue is with adding a watermark is that when doing a copy context and merging pages, the original content is always behind the new content (which makes sense).

When trying to add a watermark using the ModifiedPage I am also seeing that the watermark does not sit on top of the original content.

Has anyone dealt with any of these problems? I will continue to post code here as I clean it up.

@seagrady2
Copy link
Author

seagrady2 commented Apr 12, 2019

I also resolved this by using the modifier. I am having issues however loading the trailer information from a modified pdf, the trailer always is loaded as empty with no additional information directory even though I am able to read the additional info in adobe.

@ghernando
Copy link

Have you been able to make more progress with this?

@seagrady2
Copy link
Author

seagrady2 commented Sep 25, 2019 via email

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

No branches or pull requests

2 participants