Document distance2line