且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 PDFBox 从 PDF 中删除特定图像

更新时间:2023-12-05 15:27:52

它的工作方式与示例 RemoveAllText.java 中的工作方式相同,只是使用了不同的标签.

It works same way like it does in example RemoveAllText.java, just with different tag.

使用此示例中的代码,只需使用Do"而不是Tj".

Use code from this example, just use "Do" instead of "Tj".

当然,如果您需要加载元数据等,您应该枚举并检查图像抛出的页面资源(如我的示例)

Of course, if you need to load metadata, etc, you should enumerate and check images threw page resources (like in my example)