Hi Paul, the viewBox is the way to go here.
If Inkscape and Illustrator don't support viewBoxes correctly, its a bug in these software applications. The viewBox has nothing to do with a browser. They should work in authoring tools as well, if properly implemented. Perhaps you should discuss this in the Inkscape mailinglist as well? I am also interested that Inkscape gets proper viewBox support. If you want to convert individual svg files with viewBoxes set, Apache Batik is a very good tool to convert SVG to other formats (such as PNG/TIF/PDF/JPEG). See http://xmlgraphics.apache.org/batik/ Imagemagick can also convert SVGs to other formats, don't know how well it works with viewBoxes. Andreas --- In [email protected], "sawshedges" <[EMAIL PROTECTED]> wrote: > > hi all, > > Is it possible to reset the originating x and y in svg without a > browser and the viewBox attribute? To explain briefly my problem. I > want to render numerous UK county outlines in their own svg documents. > However, all the coords to create the polygons for the outlines are > derived from UK ordnance survey data. This means that the x and y > origins all start from bottom left of the UK (near the Scilly Isles) > and so rendering say a county in the middle of the UK leaves a large > amount of whitespace to the left and also below (I already do the > minus conversion on the y axis to render that correctly rather than > use scale(1 -1) ). > > I need, if possible, to _shift_ the rendered county towards the bottom > left origin point thus keeping the area smaller and focusing solely on > the rendered county. .e.g. render all counties into their own 500,500 > svg document. > > Looking over the spec I've tried variations on translate() and > viewBox, but I think these mainly work when rendered via a browser? > I'm rendering the counties down to specific files and then checking > them via Inkscape so I can then eventually output them as PNG's. > > Can anyone give me any pointers on if this is possible and how I might > attack it pls? > > TIA, > Paul > ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

