Java在PDF中如何删除注释
作者:EasyWind
时间:2023-05-03
浏览:4
流程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");
作者最新文章
京东发布AI餐饮经营工具,已在全国300余家中小餐饮门店落地应用
2026-11-02 10:44
ACfun回家官网入口-acfun网页版免费入口
2026-10-30 14:15
漫蛙manwa漫画官网入口及登录指南2027
2026-10-28 19:07
camtasia怎么导入ppt 幻灯片录制教程
2026-10-27 13:23
PDF怎么高清转换成图片?PDF转图片如何保持清晰度?
2026-10-27 11:54
热门文章
更多
精品专题
更多
Mac软件
更多
WINDOWS
更多


































