Skip to content
Discussion options

You must be logged in to vote

Arranging text to blocks is happening inside MuPDF - it is done with some heuristics based on coordinates, fontsizes and so on.
There is nothing "physical" in the document representing a block.

To delete text, you can either follow the pattern of font replacement as you already observed.
Or use redaction annotations. Then MuPDF code will physically remove text for which you have provided a rectangle. You then have a number of options to fill that gap with new stuff: text, images, ...

Forget your option 3: this requires a lot of translation work (unicode -> glyph -> position info ...) already implemented by MuPDF logic in redactions.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@phper5
Comment options

Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #1158 on July 22, 2021 12:17.