private void applyInvisibleLinkType(Annotation annotation) {
        // clear border thickness
        if (linkType == Annotation.INVISIBLE_RECTANGLE) {
            Object border = annotation.getObject(Annotation.BORDER_KEY);
            if (border != null && border instanceof Vector) {
                Vector borderProps = (Vector) border;
                if (borderProps.size() >= 3) {
                    borderProps.set(2, 0);
                }
            }
            // check for a border style
            if (annotation.getBorderStyle() != null) {
                BorderStyle borderStyle = annotation.getBorderStyle();
                borderStyle.setStrokeWidth(0);
            }
        }
    }