The line and the text can be on the same layer as long as the line in lower in the Z-stack than the text. The arrowhead will be included in the pdf.