jjzjj

java - 创建仅在使用 PDFBox 打印时显示的水印(pdf 可选内容)

我遇到过很多使用PDFBoxLayerUtility的appendFormAsLayer方法的示例,如下所示:/***Placesthegivenformovertheexistingcontentoftheindicatedpage(likeanoverlay).*Theformisenvelopedinamarkedcontentsectiontoindicatethatit'spartofan*optionalcontentgroup(OCG),hereusedasalayer.Thisoptionalgroupisreturnedand*canbeenabledanddisab