Get familiar yourself with the process to add polyline annotation using Java and easily consume APIs to develop a capability to add polyline annotation in Java....had published an article on extracting annotations from PDF documents...documents in Java, see how to Extract Annotations from PDF in Java...