[Qgis-user] Atlas and svg files

Neumann, Andreas a.neumann at carto.net
Wed Mar 30 05:11:22 PDT 2016


Hi Thierry, 

Did you try to use the SVG file in an image object instead of the html
object? The image object in print composer accepts raster files (png and
jpeg) as well as SVG vector files. Qt supports the static features [1]
of SVG 1.2 Tiny [2], so probably doesn't correctly display some of
Inkscapes advanced features, but plain basic shapes, path and text
elements with simple fills and strokes should render well. 

The reason I suggest the image object is because it has scaling and
placement options, which comes in handy for atlas printing where you
have SVG files with different sizes or width/height ratios. 

Hope this helps, 

Andreas 

On 2016-03-30 11:42, Thierry GONON wrote:

> Hi all, 
> 
> I'm back on this list after a long break... 
> 
> QGis is always becoming better and better from version to version ! 
> And of course, we always want it to make new things ! 
> 
> I'm trying to manage an atlas, including for each feature a svg file (inkscape svg format) representing the cross-section of this feature. It works using the text block, displayed as HTML, using the <img> tag. But with this tag, with width and height set to 100%, it resize it so that the page (A4or A3) fit to the block... So that it's not at the right scale... And it's not an editable svg anymore, but an IMAGE... 
> I also tried the <svg> tag, with <image xlink:href> sub-tag, or the <object> tag... But none of these options are working. 
> 
> I think there's a way to do this, but I can't find it... Anyone can help ?? 
> 
> Thierry 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

  

Links:
------
[1] http://www.w3.org/Graphics/SVG/feature/1.2/#SVG-static
[2] http://www.w3.org/TR/SVGMobile12
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160330/e5e5ae8d/attachment.html>


More information about the Qgis-user mailing list