PdfReader currentReader = new PdfReader(testFile.getAbsolutePath());
Document document = new Document(PageSize.A4, 0, 0, 0, 0);
PdfWriter writer = PdfWriter.getInstance(document, new
ByteArrayOutputStream());
document.open();
document.newPage();
List links = currentReader.getLinks(1);
PdfAnnotation.PdfImportedLink link =
(PdfAnnotation.PdfImportedLink) links.get(0);
writer.addAnnotation(link.createAnnotation(writer));
document.close();