How to use fitz to delete tables in PDF? Need help, Thanks. #115
Answered
by
JorjMcKie
xiaobie-lhm
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
JorjMcKie
Sep 16, 2023
Replies: 1 comment
-
Determine the bbox that wraps the table. Then use a redactions annotation to remove the table's text: page.add_redact_annot(bbox)
page.apply_redactions() Don't forget to save with an appropriate garbage collection to get rid of the "ghost" objects created by the process. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JorjMcKie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Determine the bbox that wraps the table. Then use a redactions annotation to remove the table's text:
Don't forget to save with an appropriate garbage collection to get rid of the "ghost" objects created by the process.