Using pymupdf, how can I make an annotation through add_freetext_annot be bold? - Stack Overflow

Using pymupdf, how can I make the text on an annotation through add_freetext_annot be bold?I can'

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
Add a comment  | 

1 Answer 1

Reset to default 0

Thank 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信