Skip to content
Discussion options

You must be logged in to vote

Sure you need the image's bbox part on the page, that is actually visible. There is no way to find that sub-rectangle by looking at the image properties.
The best you can have is bbox & page.rect: I noticed that some of these images are not fully contained in page.rect - their bboxes have negative coordinate values.
But whether other stuff on the page is partly covering cannot be determined that way. Also note that this coverage need not at all leave behind a visible sub-rectangle of bbox in the general case: it could just be a corner or a hole inside the bbox and what not. So just assuming the visible part of any image is a rectangle will lead to nowhere.
There is page.get_bboxlog() whic…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

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