如何用C ++解析XPS文档? [英] How to parse XPS document by C++?

查看:92
本文介绍了如何用C ++解析XPS文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前是否有人这样做过?

Has anybody done this before?

推荐答案

您好,我们用NiXPS库完成了这个:
Hi,

we have done this with our NiXPS library:
< a href ="http://nixps.com/library.html"> http://nixps.com/library.html

http://nixps.com/library.html

我们的库负责解析,资源处理等...
它还有一个符合规范的对象模型,因此您可以正确读取和修改XPS文件,而无需读取和写出可能符合或不符合的原始XML构造规范。
我们也很自豪地提供了一个与XPS XML"原生"一起工作的库,因为如果用户没有请求,它不会改变XPS文件中的XML结构 - 所以库不会在自己的数据结构中读取XML,并将其写回来,因为这通常会导致XML总是发生变化,在大多数情况下,当您只想在本地进行本地更改时,您不希望这样做。如XPS文件的pect。
这也导致库执行得非常好,因为开销处理保持绝对最小。

您可以在这里下载试用版:

Our library takes care of the parsing, resource handling, etc...
It also has an object model that conforms to the specification, so you can read and modify XPS files correctly without having to resort to reading and writing out raw XML constructs which may or may not conform to the specification.
We also pride ourselves in delivering a library that works with the XPS XML 'natively', in the sense that it does not alter the structure of the XML in the XPS files if the user does not requests this - so the library does not read the XML in its own datastructures, and writes it back out, as this would generally have the effect that the XML always changes, which in most cases you do not want when you just want to make a local change on an aspect of an XPS file.
This also results in a library that performs exceptionally well, as the overhead processing is kept to an absolute minimum.

You can download a trial here:

http://nixps.com/library_apply.php

http://nixps.com/library_apply.php

我们还绑定了其他语言喜欢C#。
它适用于Windows 2000 / XP / Vista和Mac。

问候,
尼克。

We also have bindings to other languages like C#.
And it works on Windows 2000/XP/Vista and Mac.

Regards,
Nick.


这篇关于如何用C ++解析XPS文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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