addLineToPDF reads line info from linedetector to embed lines to PDF