I experience that importing some pdf files can result in numerous clipPath objects. Some of this objects can be pretty unpleasant to work with (e.g. visible rectangle that cannot be selected) - and gives a result that is not easy to work with.
The workaround for me is as following:
Find/Replace
search string "clip"
Search in [Properties]
Button Find.
menu bar: Object --> Clip --> Release clip.
remove any unnecessary leftover objects (those are many and need to be manually deleted one by one since they also overlap objects that is not subject for deletion).
1 Open the XML editor [shift+ctrl+x]. Expand the <defs> section and delete all <clipPath> elements.
The XML editor only allows you to remove one at a time. If there are many clip paths, it's quicker to delete them in a text editor. Now back to your first step.
Yes - I tried that using the xml editor, but it counts about 100 <clipPath> elements, so that method using mouse pointer to select and click on the trash bin icon is just way more cumbersome.
Just saw that in xml editor, there are no way of using the keyboard in order to delete a selected node.
If you open the svg file in a text editor you can select all the <clipPath> elements and delete them with a single keystroke. Save the file. Go back to Inkscape and open the file or use [File > Revert] to refresh the current image.
Hi forum.
I experience that importing some pdf files can result in numerous clipPath objects. Some of this objects can be pretty unpleasant to work with (e.g. visible rectangle that cannot be selected) - and gives a result that is not easy to work with.
The workaround for me is as following:
Any advice to work smarter than this ?
Change the work sequence.
1 Open the XML editor [shift+ctrl+x]. Expand the <defs> section and delete all <clipPath> elements.
The XML editor only allows you to remove one at a time. If there are many clip paths, it's quicker to delete them in a text editor. Now back to your first step.
2 Find shapes with "clip" in properties.
3 [Object > Clip > Release clip]
Yes - I tried that using the xml editor, but it counts about 100 <clipPath> elements, so that method using mouse pointer to select and click on the trash bin icon is just way more cumbersome.
Just saw that in xml editor, there are no way of using the keyboard in order to delete a selected node.
If you open the svg file in a text editor you can select all the <clipPath> elements and delete them with a single keystroke. Save the file. Go back to Inkscape and open the file or use [File > Revert] to refresh the current image.
Good idea, I agree with that using an external text editor are probably the most efficient way of mass-removal of all <clipPath> elements 😀