Skip to content
Discussion options

You must be logged in to vote

If you know the rectangle coordinates on a page, simply do this:

pix = page.get_pixmap(clip=rect)
pix.save("your-image.png")

Please remember that get_pixmap() has a number of parameters, that let you choose the desired colorspace, resolution (dpi) and more.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JorjMcKie
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