make MAPLINE command work correctly for pdf output