Donate Share

DocBook to LaTeX Publishing

Tracker: Feature Requests

5 Add support for SVG - ID: 2445326
Last Update: Settings changed ( sf-robot )

SVG becomes more and more ubiquitous. Especially in docbook, SVG seems to
be the ideal choice for vector graphics, as it is natively supported in
HTML (with decent browsers), and other pdf-generating toolchains such as
apache's fop and renderx' xep support it, too.

Thanks,
Stefan


Stefan Seefeld ( stefan ) - 2008-12-18 14:05

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 4 )

Date: 2009-09-06 02:21
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2009-09-03 12:55
Sender: lonkamikaze

That's a start, but it doesn't work. Dblatex 0.2.12 calls inkscape with the
wrong parameters:

E.g. if the file in the document is named images/foo.svg the call is:
inkscape -z -D "--export-pdf=/complete/path/to/images/foo.svg" fig2.pdf
Tt should be:
inkscape -z -D "/complete/path/to/images/foo.svg" --export-pdf=fig2.pdf

Also, I'd prefer -C (canvas) instead of -D (drawing), because I normally
have some stuff outside of the canvas, like objects of which clones appear
within the canvas. Is this tunable?

The pdf export from inkscape totally sucks, though (the resulting images
are normally broken and ugly). But that's not your fault.

A compromise would be (tunable?):
inkscape -z -C -d 300 -b '#ffffff' "/complete/path/to/images/foo.svg"
--export-png=fig2.png

It makes a 300dpi export of the canvas with a white background (I dimly
recall that transparent PNGs are broken in dblatex). This is much less than
optimal, but at least it should look decent in print.


Date: 2009-08-22 22:39
Sender: marsguiProject Admin

In version 0.2.12, the patch #2821475 has been added: it can transform SVG
graphics with Inkscape to PDF. Is it this kind of support you expected to
have?



Date: 2009-08-12 11:34
Sender: lonkamikaze

I second this. All my illustrations are SVG and it's kinda tiring to render
them into high res PNGs. Also the scaling of raster graphics is very ugly
in many PDF viewers.


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Pending 2009-09-06 02:21 sf-robot
allow_comments 1 2009-09-06 02:21 sf-robot
close_date 2009-08-22 22:39 2009-09-06 02:21 sf-robot
status_id Open 2009-08-22 22:39 marsgui
close_date - 2009-08-22 22:39 marsgui