将XPS转换为SVG [英] Convert XPS to SVG

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

问题描述

是否有直接,快速的方法将 XPS(XML纸张规范)文件转换为 SVG 格式?

Is there a direct and fast way to convert XPS (XML Paper Specification) files to SVG format?

我可以将XPS转换为PDF,然后使用 inkscape 将其转换为SVG. 但是PDF-> SVG步骤非常耗时,尽管此过程似乎不占用CPU.

I can convert XPS to PDF and then using inkscape to convert them to SVG. But the PDF->SVG step is very time consuming though this process seems is not CPU consuming.

我的理解是,由于XPS是一种基于矢量的格式,因此将其转换为另一种基于矢量的格式(例如SVG)必须是可行的,并且比转换基于栅格的格式要快得多(尽管我并不完全确定pdf只是基于栅格的格式)到基于矢量的格式.

My understanding is that be cause XPS is a vector based format, converting it to another vector based format like SVG must be feasible and much faster than converting raster based format (though i'm not entirely sure pdf is just raster base) to vector based formats.

顺便说一句,目标是在浏览器中显示基于矢量的图像,并且我有XPS文件.

BTW, the goal is to display vector based images in browser, and I've XPS files.

推荐答案

libgxps 读取XPS并可以创建SVG文件.

libgxps reads XPS and can create SVG files.

我使用xpstosvg命令在Cygwin上进行了尝试,并且工作正常.

I tried it on Cygwin with the xpstosvg command and worked fine.

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

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