是否可以使用 ABCPdf 或其他框架从 PDF 中删除或隐藏图层?
最佳答案
以下 C# 示例显示了如何删除第 1 页的第 2 层:
Doc theDoc = new Doc();
theDoc.Read("source.pdf");
int thePages = theDoc.GetInfoInt(theDoc.Root, "Pages");
int thePage = theDoc.GetInfoInt(thePages, "Page 1");
int theLayer = theDoc.GetInfoInt(thePage, "Content 2");
theDoc.Delete(theLayer);
关于pdf - 使用 ABCPdf 删除或隐藏 PDF 图层?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2434264/