Thanks for your reply. Actually, i want to read where all the lines in a page, exact vertical position of each line and put the line number straight opposite to the lines on right side margin of the PDF. Is it possible to read the line vertical position and make separate layer equal to the maintext layer on the right side and insert incremental numbers? Regards, Srikrishnan