aspose.pdf.dll for .net , 版本号24.4.0.0,删除pdf文本内容时,漏掉了一些文本未删除。
示例代码:
void RemoveAllTextTest()
{
Document^ pdfFile = gcnew(Document)(“C:\Users\Administrator\Desktop\test15.pdf”);
for each (Page^ page in pdfFile->Pages)
{
TextFragmentAbsorber ^absorber = gcnew TextFragmentAbsorber();
absorber->RemoveAllText(page);
}
pdfFile->Save(“C:\Users\Administrator\Desktop\test15_delete_text.pdf”);
}
aspose的效果:
1f521f281586abba66785f0f655f2d8.png (9.3 KB)
正确的效果应该是
191a0796a028c26d0f8663589da80e1.png (2.3 KB)