"Unknown Error!" 在 Windows 10 的 Surface 3 上调用 pdftron.PDF.PDFViewCtrl.SetDoc 时

"Unknown Error!" when calling pdftron.PDF.PDFViewCtrl.SetDoc on Surface 3 on Windows 10

我们在为 Windows 通用应用程序加载 PDFTron 控件时遇到问题。该控件在我的台​​式机(Intel Xeons)和 Surface 1(ARM 运行 Windows 8.1)上的 Windows 10 上运行良好。但是,在我们新的 Surface 3(Intel Atom)运行 Windows 10 上,SetDoc 失败并显示“未知错误!”:

Failed to set doc: System.Runtime.InteropServices.COMException (0x80004005): Unspecified error

Unknown Error!
   at pdftron.PDF.PDFViewCtrl.SetDoc(PDFDoc doc)
   at PDFViewCtrlDemoUniversal.ViewModels.PdfPageViewModel.SetDoc(PDFDoc doc)
The thread 0xdec has exited with code 0 (0x0).
The thread 0x1af0 has exited with code 0 (0x0).
Exeption at line 0 in file 
Message: Unspecified error

我尝试了我们的应用程序和 PDFTron 示例应用程序 (PDFViewCtrlDemoUniversal.Windows) 都因相同的错误而失败。在我们的机器上的应用程序中,其他一切都可以正常工作,只是不能通过 PDFTron 加载 PDF。示例应用程序在我的桌面 Windows 10 安装上也能正常工作,类似于 Windows 8.1.

上的 Surface 1 ARM 设备

我们是 运行 PDFTron.PDFNetUniversal.Windows 版本 6.5.1.31959.

Windows Windows 8.1.

中 Windows.Graphics.Display.DisplayProperties.ResolutionScale 枚举器无法识别的 10 个像素密度

这就是为什么某些设备会发生故障而其他设备不会发生故障的原因。

我们已在最新版本 (6.5.1.34018) 中解决了此问题。联系支持人员获取下载。