Skip to content

Python Text annotation with PyMuPDF #873

Answered by JorjMcKie
testingdlrna asked this question in Q&A
Discussion options

You must be logged in to vote

This is a case of text lines which overlap each other in their line height.
When applying redactions, MuPF remove all characters whose bbox has a non-empty overlap with a redaction rectangle.To avoid this, globally set the character bbox height to fontsize height by executing fitz.TOOLS.set_small_glyph_heights(True) before searching and defining annot rectangles.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #872 on February 01, 2021 17:53.