Incorrect PDF map export with foreign elements

This is the same problem as described in this thread. The vandalism is being dealt with currently.