Skip to content

svg drawing and filling problem #4228

Closed Answered by JorjMcKie
dzw13503933162 asked this question in Q&A
Discussion options

You must be logged in to vote

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 executing page.get_svg_drawings(). You may want to experiment a little here.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@dzw13503933162
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dzw13503933162
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4227 on January 15, 2025 08:20.