How to Convert a SVG File to PDF Format

本文介绍如何使用Apache Batik工具将SVG文件转换为PDF格式。通过下载Batik发行版并使用命令行工具,可以轻松实现这一过程。文章还提供了具体步骤及所需软件版本要求。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://xmlgraphics.apache.org/batik/tools/rasterizer.html
http://help.arcgis.com/zh-cn/arcgisdesktop/10.0/help/index.html#/na/00sm00000007000000/
http://www.carto.net/
http://www.carto.net/neumann/
http://www.svgopen.org/2012/
http://www.geofoto.ch/
http://inkscape-forum.andreas-s.net/topic/129105
http://xmlgraphics.apache.org/batik/#download
http://xmlgraphics.apache.org/fop/


How to Convert a SVG File to PDF Format
By eHow Contributor

Print this article

Screen Shot of the Batik SVG Project Home Page
Scalable Vector Graphics (SVG) is the International Standard fro two-dimensional vector and mixed vector/rastor graphics in XML. Commonly, it is desirable to convert SVG or other 2D graphics formats into Portable Document Format (PDF). PDF is a file format originally created by Adobe in the early 1993's for document exchange that could not be easily edited, and not dependent on the operating system which it was displayed. Since that time frame, PDF has become an open standard which was published in mid-2008.

Related Searches:
PDF to PDFGML SVG
Difficulty: Moderate
Instructions

Things You'll Need
PDF Viewer
Java Runtime version 1.3 or newer.
1
Download the binary batik distribution from: http://xmlgraphics.apache.org/batik/download.cgi to the working folder on your development computer. Choose the appropriate option for the Java Run Time environment installed on your computer. In this example, the working directory is c:/users/javanx3d/batik.

2
Open the command prompt and change the file directory to c:/users/javanx3d/batik/batik-1.7.

3

Screen Shot of the command prompt after converting batikFX.svg to PDF format.
Convert the sample file batikFX.svg to .PDF format by typing the following command on the command line: java -jar batik-rasterizer.jar samples/batikFX.svg. Once enter is pressed, the following readout will display on the command prompt:
C:\Users\Javanx3d\batik\batik-1.7>java -jar batik-rasterizer.jar -m application/
pdf samples/batikFX.svg
About to transcode 1 SVG file(s)

Converting batikFX.svg to samples\batikFX.pdf ... ... success

C:\Users\Javanx3d\batik\batik-1.7>

4

Screen Shot of the Converted PDF File.
View the converted PDF file in a PDF viewer


Read more: How to Convert a SVG File to PDF Format | eHow.com http://www.ehow.com/how_4764638_convert-svg-file-pdf-format.html#ixzz1lWBev19M

http://www.coderanch.com/t/563609/Performance/java/svg-pdf-under-ms
http://www.ehow.com/how_4764638_convert-svg-file-pdf-format.html
http://www.alt-soft.com/Products_svg2pdf.aspx
http://stackoverflow.com/questions/2143971/svg-to-pdf-on-a-shared-linux-server

http://inkscape-forum.andreas-s.net/topic/129105
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值