Skip to content

How to do visual debugging of a PDF #1260

Discussion options

You must be logged in to vote

In the end, the issue I had was that I was doing:

drawings = some_page.get_drawings()

And then:

rect = drawings[0].rect

That totally doesn't work for multi-line redactions like I had. In those cases, you have to read the docs, which explain that the drawing["items"] key is where the real shapes are. Once I started using those, I was able to handle the multi-line redactions no problem.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@mlissner
Comment options

@JorjMcKie
Comment options

@mlissner
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by mlissner
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants