如何在Windows上以编程方式将SVG转换为PDF? [英] How to programmatically convert SVG to PDF on Windows?

查看:108
本文介绍了如何在Windows上以编程方式将SVG转换为PDF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在服务器上以编程方式将SVG转换为PDF文档.在Windows上我有什么选择呢?

I'm looking to programmatically convert SVG to PDF documents on a server. What are my options for doing that on Windows?

我看过 Inkscape svg2pdf ,但我不确定这些代码是否可以轻松地自动在Windows服务器上执行转换.

I've seen links to Inkscape, Batik, and svg2pdf, but I'm not sure if these can easily be automated to perform the conversion on a Windows server.

这里有一个不寻常的解决方案,涉及在服务器上自动化OpenOffice Portable: http://www.codeproject.com/KB/office/PortableOpenOffice.aspx

There's an unusual solution here which involves automating OpenOffice Portable on the server: http://www.codeproject.com/KB/office/PortableOpenOffice.aspx

推荐答案

有两个选项:

  • Batik (Java, open source)
  • Inkscape (native binary, open source)

蜡染带给您更多的控制权.使用Inkscape,您可以使用命令行参数(--export-pdf IIRC)进行转换,而无需启动UI.

Batik will give you more control. With Inkscape, you can use the command line parameters (--export-pdf IIRC) to do the conversion without firing up the UI.

这篇关于如何在Windows上以编程方式将SVG转换为PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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