要添加
contentStream使用以下代码
PDRectangle position = new PDRectangle(); position.setLowerLeftX(10); position.setLowerLeftY(20); position.setUpperRightX(100); position.setUpperRightY(10); txtlink.setRectangle(position); page.getAnnotations().add(txtlink);

要添加
contentStream使用以下代码
PDRectangle position = new PDRectangle(); position.setLowerLeftX(10); position.setLowerLeftY(20); position.setUpperRightX(100); position.setUpperRightY(10); txtlink.setRectangle(position); page.getAnnotations().add(txtlink);