首页 > 解决方案 > WPF 无法转换类型为“Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfLiteralString”的对象

问题描述

我正在使用 Telerik RADPDFfixedDcoument 开发 WPF

我在下面的代码中收到无效的强制转换错误

var file = new FileStream(_physicalpath, FileMode.Open, FileAccess.Read);

RadFixedDocument documentX = new PdfFormatProvider().Import(file);// this line throws error

错误:无法将“Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfLiteralString”类型的对象转换为“Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Destinations.DestinationObject”类型的对象.

标签: wpf

解决方案


Telerik 尚不支持 PDF 中的命名目的地。


推荐阅读