我在此行中从PDF文件获取超链接时收到错误
PdfDictionary AnnotationAction = (PdfDictionary)AnnotationDictionary.Get(PdfName.A);
Run Code Online (Sandbox Code Playgroud)
下面提到异常,请有人帮忙。
无法将类型为“ iTextSharp.text.pdf.PRIndirectReference”的对象转换为类型为“ iTextSharp.text.pdf.PdfDictionary”的对象
。
我写了这段代码只选择pdf文件,但它不起作用
OpenFileDialog fd = new OpenFileDialog();
fd.ShowDialog();
fd.Filter = "Pdf files (*.Pdf)|*.Pdf";
Run Code Online (Sandbox Code Playgroud)