Java在PDF中如何删除注释
作者:EasyWind
时间:2023-05-03
浏览:5
流程1、使用Document类加载PDF文档。2、用Document.getPages().get_Item(int).getAnnotations().delete()删除所有注释。3、用Document.save保存更新的PDF。实例//OpensourcePDFdocumentDocumentpdfDocument=newDocument("input.pdf");//DeleteallannotationpdfDocument.getPages().get_Item(1).getAnnotatio
本文目录
流程
1、使用Document类加载PDF文档。
2、用Document.getPages().get_Item(int).getAnnotations().delete()删除所有注释。
3、用Document.save保存更新的PDF。
实例
// Open source PDF document
Document pdfDocument = new Document("input.pdf");
// Delete all annotation
pdfDocument.getPages().get_Item(1).getAnnotations().delete();
// Save the update document
pdfDocument.save("output.pdf");
作者最新文章
漫蛙漫画在线入口及官网链接
2026-11-22 15:27
Opera欧朋浏览器网页推送通知怎么关闭 按站点屏蔽设置
2026-11-20 19:00
2026年AO3镜像最新地址及稳定入口
2026-11-09 17:40
WPS文字目录显示为TOC域代码的解决方法
2026-11-09 12:00
microsoft 365 office 无法打开怎么办
2026-11-07 15:41
热门文章
更多
精品专题
更多
Mac软件
更多
WINDOWS
更多


































