try {
final PDFTextStripperByArea stripper = new PDFTextStripperByArea();
final List linkAnnotations = new ArrayList();
final List linkRegions = new ArrayList();
extractAnnotations(page, stripper, linkAnnotations, linkRegions);
stripper.extractRegions(page);
final Map uriMap = new HashMap();
final Map textMap = new HashMap();
collateLinks(linkAnnotations, linkRegions, uriMap, textMap, stripper);
final Iterator it = uriMap.keySet().iterator();
while (it.hasNext()) {