admin管理员组文章数量:1400188
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
本文标签: Using pymupdfhow can I make an annotation through addfreetextannot be boldStack Overflow
版权声明:本文标题:Using pymupdf, how can I make an annotation through add_freetext_annot be bold? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744238606a2596678.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论