Skip to content
Discussion options

You must be logged in to vote

Is it possible to extract drawings from a PDF and save them as images?

Yes, indirectly: Use the drawing's rectangle as clip parameter and make a pixmap from it: pix = page.get_pixmap(clip=path["rect"]).

Do drawings in a PDF have xref values?

No, they only exist as code snippets inside a page's /Contents object.

Replies: 5 comments 18 replies

Comment options

You must be logged in to vote
5 replies
@meghanaviyyapu
Comment options

@JorjMcKie
Comment options

@meghanaviyyapu
Comment options

@meghanaviyyapu
Comment options

@JorjMcKie
Comment options

Answer selected by meghanaviyyapu
Comment options

You must be logged in to vote
9 replies
@meghanaviyyapu
Comment options

@JorjMcKie
Comment options

@meghanaviyyapu
Comment options

@JorjMcKie
Comment options

@meghanaviyyapu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

@JorjMcKie
Comment options

@meghanaviyyapu
Comment options

Comment options

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

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