change link pdf threshold line color and width

had to improve rendering algorithm to deal with granularity issue
when rendering visible part of pdf right at threshold.