This sample shows how to add a Link in a PDF document with a LaunchAction with specified open preferences: Open in a new window: Action.OPEN_NEW_WINDOW Open in the existing window: Action.OPEN_EXISTING_WINDOW Window set by user preference: Action.OPEN_USER_PREFERENCE // create a new link Link link = page.getDocument().getAnnotationFactory().createLink(); // show blue border around the link link.setRectangle(bounds); […]