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

custom stamp anotation #2802

Closed
santi2491 opened this issue Nov 12, 2023 · 3 comments
Closed

custom stamp anotation #2802

santi2491 opened this issue Nov 12, 2023 · 3 comments

Comments

@santi2491
Copy link

Can I add a custom stamp to the stamps that currently exist in Stamp Annotation Icons

@JorjMcKie
Copy link
Collaborator

Yes - to a limited extent - please see the documentation here.

@santi2491
Copy link
Author

Yes - to a limited extent - please see the documentation here.

Can you tell me how? I am trying to modify the text of a stamp with the set_name function but it does not work

@JorjMcKie
Copy link
Collaborator

JorjMcKie commented Nov 16, 2023

No idea why it doesn't seem to work anymore. As a last resort you could do this:

a = page.add_stamp_annot(rect)
code = a._getAP().replace(b"APPROVED", b"my-stamp")
a._setAP(code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants