wpf - 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”类型的对象.
解决方案
Telerik 尚不支持 PDF 中的命名目的地。
推荐阅读
- angular - 角度刷新回到主页
- flutter - 将 Dio 拦截器添加到 Flutter Riverpod
- plugins - 将文件夹添加到上游文件部分
- mongodb - 如何使用 mongoc 更新文档
- ruby-on-rails - 方法调用中对象 (..) 后两点的含义
- javascript - 如何在 Typescript 中使用 oclif fancy-test 存根函数?
- php - 从 URL 获取 JSON 数据并将其存储在数组中,以使用 PHP 中的 foreach 将该数据添加到 mysql
- javascript - 从 OBJECT 数组中删除其他 OBJECT (NPM Twit)
- netlify - 如何向 Netlify 提供 Firebase 管理员凭据?
- ios - 点亮 SpriteKit SKEmitterNode