-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ENH: Support transparency channel (RGBA) in annotations interiour_color #2201
Comments
quad components in PDF means most of the time CMYK components. Transparency should be considered as an independent attribute |
sounds good to me, so something like? annotation = annotation_builder.rectangle(
rect=(x[0], y[0], x[0] + 10, y[0] + 30),
interiour_color="f1e740",
transparency=0.5,
) |
Here is a function I created to set opacity for annotation
must be called after
|
amazing, I will try it out next time I need it! |
@sky-code you should push it into Discussion to ease people to find the information. |
Omg I needed this too thank you so much @vors is it possible to add this feature to main? |
Looks awesome! I definitely need that feature |
🙏 Yes please! |
Great work, but could it be that this only works for annotations on the first page? Or does I missed something? |
Ohh yeah, I need this feature as well 🙏 |
Explanation
I'd like to do highlighting of a certain parts of the pdf, but I want it to be transept so the original pdf is readable.
The proposal is to support RGBA in annotation to allow for it
Code Example
How would your feature be used? (Remove this if it is not applicable.)
The text was updated successfully, but these errors were encountered: