Skip to content

About get_drawing function #969

Discussion options

You must be logged in to vote

Any suggestions?

Not really. I bet you are talking of pages with an awful lot of drawing commands.
I based the method on a subset of MuPDF's tracing device, which does all the analysis of the painting commands. Its output I then convert to Python objects.
To confirm, try the following command yourself (Windows version), which puts the trace device's output on a text file: mutool trace file.pdf n > file.xml where n is the desired page number (1-based). The output format is XML.

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@Yichen-fqyd
Comment options

Answer selected by Yichen-fqyd
Comment options

You must be logged in to vote
1 reply
@Yichen-fqyd
Comment options

Comment options

You must be logged in to vote
2 replies
@Yichen-fqyd
Comment options

@JorjMcKie
Comment options

Comment options

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

@Yichen-fqyd
Comment options

@JorjMcKie
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