A way to do this is convert to bitmap, then convert back to vector.