W3C home > Mailing lists > Public > public-svg-print@w3.org > April 2005

Re: Urgent Help

From: Dean Jackson <dean@w3.org>
Date: Tue, 19 Apr 2005 22:20:11 +1000
Message-Id: <27389e3f495eed56fb83e76c792d437d@w3.org>
Cc: public-svg-print@w3.org
To: ganesh jothikumar <ganesh.jothikumar@oracle.com>

Hi Ganesh,

On 19 Apr 2005, at 00:29, ganesh jothikumar wrote:

>  I have a requirement wherin I will have to zoom the svg image. I know 
> that this can be done using CTRL key. But can this be done 
> programaticaly.

Firstly, you might want to ask this question on 
This email list is for discussing the SVG print specification, not 
the behaviour of an implementation.

Having said that, a programmatic zoom is indeed possible in the SVG
language (on any viewer). You have a few choices:

- if you have scripting (such as the Adobe viewer or Batik) you can
   modify the currentScale attribute on the SVGDocument element via

- if you have animation you can have an element in the SVG document
   that animates the viewBox attribute on the root <svg> element.

There are also a few other ways (such as putting a transform on a <g>
element that wraps everything you want to zoom).

I suggest the first option (using javascript). If you do a search
for "svg currentScale" you'll probably find code.

Received on Tuesday, 19 April 2005 12:20:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:41:45 UTC