Copying paths from pdf to pdf - problem with draw_quad #4379
Answered
by
JorjMcKie
AvivEsh
asked this question in
Looking for help
-
I am drawing whole paths from one existing pdf to another, by redrawing them in the new pdf. So the copy code is as follows:
From what I see, the input for draw_quad should be quad_like, which is 4 point_like. so 4 sequences of points. TypeError: draw_quad() takes 2 positional arguments but 5 were given How can I correct the error I made? |
Beta Was this translation helpful? Give feedback.
Answered by
JorjMcKie
Mar 15, 2025
Replies: 1 comment 1 reply
-
Instead of this line: shape.draw_quad((item[1][0][0], item[1][0][1]), (item[1][1][0], item[1][1][1]),(item[1][2][0], item[1][2][1]), (item[1][3][0], item[1][3][1])) Use this one: shape.draw_quad(item[1]) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AvivEsh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of this line:
Use this one: