如何使用 iTextSharp 从 pdf 文件中删除“线”形状?
我尝试:
var shape = page.GetAsStream(PdfName.LINE); //return null
var resources = PdfReader.GetPdfObject(page.Get(PdfName.RESOURCES)) as PdfDictionary; //return dictonary
var resShape = resources.GetAsStream(PdfName.LINE); //return null
PdfReader.KillIndirect(shape);
PdfReader.KillIndirect(resShape);
我做错了什么?
谢谢!