Skip to content

Question / Comment: How can I make Freetext annot transparent? #727

@chanhlt12

Description

@chanhlt12

I'm a newbie on Python and PyMuPDF.
I'm trying to add a Freetext annotation to a PDF page.
And I want it to be transparent.
But I don't know how to do that.
I tried to set the fill_color to None, but that is not the solution.
Please help me this.

Here is my code.

rect = fitz.Rect(0, 0, 100, 100)
text = "Hello world"
annot = page.addFreetextAnnot(rect=rect, text=text, fill_color=None)
annot.update()

Thank you.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions