🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.document.graphics.server
Article #162

Re: AGS not honoring "pt" in SVG tag

#162
From: Bob_Emerson
Date: Mon, 16 Aug 2004 21:37
14 lines
1980 bytes
I'm not an SVG expert, but the above sounds like the opposite of what I'd expect. Typcially units are specified only for the height and width and then everything else is left unit-less as "user units". As in:

< ?xml version="1.0" standalone="no"?>
< !DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
< svg width="400pt" height="400pt" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" version="1.1">

< rect x="1" y="1" width="398" height="398" fill="blue" stroke="red" stroke-width="2" />
< /svg>

From "Section 7.10 Units" of the SVG specification:

Note that use of px units or any other absolute unit identifiers can cause inconsistent visual results on different viewing environments since the size of "1px" may map to a different number of user units on different systems; thus, absolute units identifiers are only recommended for the width and the height on outermost 'svg' elements and situations where the content contains no transformations and it is desirable to specify values relative to the device pixel grid or to a particular real world unit size.

AGS allows you to use 72 or 96 for the userUnit attribute in convertSVGToPDF to mitigate some of these issues.
Technical Details
Message-ID: <3bb57924.4@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb57924.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe5,df632763db5843e6
X-Google-Attributes: gid1effe5,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob_Emerson@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.document.graphics.server
Subject: Re: AGS not honoring "pt" in SVG tag
Message-ID: <3bb57924.4@webx.la2eafNXanI>
Date: Mon, 16 Aug 2004 14:37:20 -0700
References: <3bb57924.-1@webx.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit