使用c sharp比较XPS文件 [英] Comparing XPS files using c sharp

查看:63
本文介绍了使用c sharp比较XPS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以使用c sharp比较两个xps文件。我试图使用二进制比较来比较文件。但每次输出都不同。每次生成文件时,字节数都会有所不同。请建议。

Is there any way I can compare two xps files using c sharp. I am trying to compare the files using binary comparison. But every time the output is different. Everytime the file is getting generated, there is a difference in the number of bytes. Please suggest.

推荐答案

XPS文件实际上是简单的ZIP存档,包含大量XML文件和嵌入资源。

尝试解压缩它们比较/ Documents / 1 /目录下的文件。

这种方法的主要问题是每次重新保存同一文档时,不同的Guids用于相同的字体!
XPS files are in fact simple ZIP archives with bunch of XML files and embedded resources.
Try to unpack them and compare files under /Documents/1/ directory.
The main problem of this approach is that each time you re-save the same document, different Guids are used for same fonts!


这篇关于使用c sharp比较XPS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆