Matrix transformation for a page #4382
Unanswered
duangdoock
asked this question in
Looking for help
Replies: 3 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Here is a snippet which does some nonsense to a page: # define PDF source code from some matrix
cont=("%g %g %g %g %g %g cm " % tuple(pymupdf.Matrix(1, -1, 0, 1, 0, 0))).encode()
# prefix the page's /Contents with this command
pymupdf.TOOLS._insert_contents(page, cont, overlay=0) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Best lookup the documentation to understand what has happened here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone
Is it possible to execute a Matrix transformation for a page? Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions