Using pymupdf
, how can I make the text on an annotation through add_freetext_annot
be bold?
I can't seem to find a way to do it.
Thank you
Using pymupdf
, how can I make the text on an annotation through add_freetext_annot
be bold?
I can't seem to find a way to do it.
Thank you
Share Improve this question asked Mar 24 at 16:58 user1910714user1910714 1099 bronze badges 1- 1 Just answered this question over in our Discord channel. PyMuPDF now fully supports this including callout arrows and global language support i.e. text shaping via Harfbuzz. Note: I am a maintainer and the original creator of PyMuPDF. – Jorj McKie Commented Mar 24 at 17:10
1 Answer
Reset to default 0Thank you to Harald Lieder who replied elsewhere with:
You can use the new rich text support of free-text annotations. This is a genuine PDF feature which we now support. You must specify richtext=True
and supply a string that contains HTML-syntax like <b>this is bold</b>
.
Here is the documentation https://pymupdf.readthedocs.io/en/latest/page.html#Page.add_freetext_annot
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744238606a4564594.html
评论列表(0条)