Convert .svg to .pdf
Gerhard Gaußling
ggrubbish at web.de
Sun May 8 14:06:06 UTC 2005
Am Sonntag 08 Mai 2005 12:04 schrieb Matthias Fechner:
> Hello James,
>
> * James Wilkinson <ubuntu at westexe.demon.co.uk> [06-05-05 17:39]:
> > Sketch (part of Ubuntu) includes sk2ps, which will also read svg.
> > sk2ps tiger.svg > tiger.ps
> > ps2pdf tiger.ps > tiger.pdf
> > Does this do what you want?
> no, it is not working, some lines are missing.
> Is it maybe easier, if i use .wmf instead of .svg?
> Is there a tool available, which can convert .wmf to .pdf?
$ apt-cache search wmf image
libwmf-bin - Windows metafile conversion tools
$ apt-cache show libwmf-bin
Description: Windows metafile conversion tools
Windows metafile (WMF) is a picture format used by many Windows
programs, e.g. Microsoft Word. libwmf is a library for interpreting
metafile images and either displaying them using X or converting them
to standard formats such as PNG, JPEG, PS, EPS and SVG(Z)...
.
This package contains several frontends to libwmf.
Bugs: mailto:ubuntu-users at lists.ubuntu.com
Origin: Ubuntu
$ dpkg -L libwmf-bin|grep bin
/usr/bin
/usr/bin/libwmf-fontmap
/usr/bin/wmf2eps
/usr/bin/wmf2fig
/usr/bin/wmf2gd
/usr/bin/wmf2svg
/usr/bin/wmf2x
/usr/share/doc/libwmf-bin
wmf2eps and than ps2pdf (eps is an _e_ncapsulated _P_ost_S_cript file).
sketch doesn't work at all for me (see traceback at the end of the
message).
But inkscape did the trick. I tested it with a svg I found on
http://www.openclipart.org/.
Maybe you need to install pstoedit first.
Than you can open the svg in inkscape (or sodipodi as well) and save it
as ps file.
With ps2pdf or ps2pdf13 you can convert it to a vector PDF. I could zoom
in to 400% without seeing any pixel. I assume, that it's a vector PDF
and not an embedded bitmap image.
HTH
Gerhard Gaußling
---
Here is the sketch traceback:
-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.11.8.20050430
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages sketch depends on:
ii libc6 2.3.5-0ubuntu3 GNU C Library: Shared
libraries an
ii libx11-6 6.8.2-10 X Window System protocol
client li
ii libxext6 6.8.2-10 X Window System
miscellaneous exte
ii python-imaging 1.1.4-3ubuntu2 Python Imaging Library
ii python-tk 2.4.1-0ubuntu2 Tkinter - Writing Tk
applications
ii python2.4 2.4.1-0 An interactive high-level
object-o
ii tcl8.4 8.4.7-1ubuntu1 Tcl (the Tool Command
Language) v8
ii tk8.4 8.4.9-1 Tk toolkit for Tcl and X11,
v8.4 -
ii xlibs 6.8.2-10 X Window System client
libraries m
everything above is from hoary amd64 except libc6 which is from breezy
amd64.
$ sketch Traceback (most recent call last): File "/usr/bin/sketch",
line 34, in ? Sketch.main.main()
File "/usr/lib/sketch-0.6.15/Sketch/Base/main.py", line 148, in main
run_script = options.run_script)
File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 184, in
__init__
geometry = geometry)
File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 103, in
__init__
self.init_tk(screen_name, geometry)
File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 213, in init_tk
geometry = geometry)
File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 108, in init_tk
className = self.tk_class_name)
File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1569, in __init__
self.tk = _tkinter.create(screenName, baseName, className,
interactive, wantobjects, useTk, sync, use)
TypeError: function takes at most 4 arguments (8 given)
More information about the ubuntu-users
mailing list