svg drawing and filling problem #4228
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Add my files |
Beta Was this translation helpful? Give feedback.
-
This is not an issue but a Discussions item. Transferring ... |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. I am curious about whether the function I want can be achieved through pymupdf, and whether pymupdf will add related functions in the future. I also want to ask if there is any project that can achieve this kind of svg image drawing. If you can reply, I will be very grateful. |
Beta Was this translation helpful? Give feedback.
-
There are no plans in that direction. What you could try is using redaction annotations which allow removing rectangular regions on a page. This includes text, images and drawings. Another way maybe to modify the page's CropBox ( |
Beta Was this translation helpful? Give feedback.
There are no plans in that direction.
What you could try is using redaction annotations which allow removing rectangular regions on a page. This includes text, images and drawings.
While the effect on text and images is quite complete, partial deletion of vector graphics is limited:
you can only decide whether graphics are deleted totally when they are fully contained in a redaction rectangle or even already when intersecting such a rectangle.
Another way maybe to modify the page's CropBox (
page.set_cropbox
) before executingpage.get_svg_drawings()
. You may want to experiment a little here.