如何枚举XPS文件中的资源?
如何访问/读取 XPS 包内的资源?
using (var doc = new System.Windows.Xps.Packaging.XpsDocument(filename, System.IO.FileAccess.Read))
{
// how to read XpsResources?
// like XpsFont, XpsImage,... ?
}
How can I access/read Resources inside an XPS package?
using (var doc = new System.Windows.Xps.Packaging.XpsDocument(filename, System.IO.FileAccess.Read))
{
// how to read XpsResources?
// like XpsFont, XpsImage,... ?
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看以下 MSDN 页面:
XpsDocument.FixedDocumentSequenceReader 和 IXpsFixedPageReader
有一些代码片段应该帮助您满足您的需要,并查看IXpsFixedPageReader 属性。
Take a look at the following MSDN pages:
XpsDocument.FixedDocumentSequenceReader and IXpsFixedPageReader
There are some code snippets there which should help with what you need, as well as looking at the IXpsFixedPageReader Properties.