如何访问/读取 XPS 包内的资源?
using (var doc = new System.Windows.Xps.Packaging.XpsDocument(filename, System.IO.FileAccess.Read))
{
// how to read XpsResources?
// like XpsFont, XpsImage,... ?
}
最佳答案
查看以下 MSDN 页面:
XpsDocument.FixedDocumentSequenceReader和 IXpsFixedPageReader
那里有一些代码片段可以帮助您满足您的需求,同时也可以查看 IXpsFixedPageReader Properties .
关于c# - 如何枚举 XPS 文件中的资源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7258403/