targetRect.getWidth() / 1000.0,
targetRect.getHeight() / 1000.0);
PDFAction pdfAction = getAction(link.getAction());
//makeLink() currently needs a PDFAction and not a reference
//TODO Revisit when PDFLink is converted to a PDFDictionary
PDFLink pdfLink = getPDFDoc().getFactory().makeLink(
targetRect2D, pdfAction);
if (pdfLink != null) {
PDFStructElem structure = (PDFStructElem) link.getAction().getStructureTreeElement();
if (documentHandler.getUserAgent().isAccessibilityEnabled() && structure != null) {
documentHandler.getLogicalStructureHandler().addLinkContentItem(pdfLink, structure);