XML到PDF [英] XML To PDF

查看:96
本文介绍了XML到PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我有以下格式的xml,

  I have the xml in the below format,

<角色>

   &NBSP;&NBSP;&NBSP;  < Roles name =" Active Directory轻量级目录服务">已安装< /角色>

   &NBSP;&NBSP;&NBSP;  < Roles name =" Network Policy and Access Services"> Installed< / Roles>

   &NBSP;&NBSP;&NBSP;  < Roles name =" Web Server"> Installed< / Roles>

< / Roles>

< RoleServices>

   &NBSP;&NBSP;&NBSP;  < RoleServices name =" Network Policy Server"> Installed< / RoleServices>

< / RoleServices>

<Roles>
        <Roles name="Active Directory Lightweight Directory Services">Installed</Roles>
        <Roles name="Network Policy and Access Services">Installed</Roles>
        <Roles name="Web Server">Installed</Roles>
</Roles>
<RoleServices>
        <RoleServices name="Network Policy Server">Installed</RoleServices>
</RoleServices>

我需要将其转换为PDF,当我在网上搜索时,我发现如果我们创建xslt文件,那么我们可以将其转换为pdf格式。任何人都可以帮助我吗?

I need to convert it into PDF when i searched in net i found out that if we create xslt file then we can convert it into pdf format. Can any one help me out in this??

推荐答案

你需要额外的工具来进行转换,因为XSLT通常用来做文本到文本转换,而PDF是二进制格式。

You need additional tools to do the transformation, because XSLT is usually used to do text to text transformation while PDF is a binary format.

 

例如:

< a href ="http://bytescout.com/products/developer/pdfdocscoutsdk/pdfdocscout_example_xml_xslt_transformation_to_pdf.html"> http://bytescout.com/products/developer/pdfdocscoutsdk/pdfdocscout_example_xml_xslt_transformation_to_pdf.html

http://www.stylusstudio.com/xml_to_pdf.html


这篇关于XML到PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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