Scalable Vector Graphics :: Scaling SVG

This page contains some simple Scalable Vector graphics elements.

For a user's screen these elements are not over-wide. However, they are wider than an A4 page and will therefore need to be scaled to fit when printed.

Some browsers will scale to fit automatically and correctly, some do not scale by default and require manual intervention and some cannot use a low enough scale factor.

With licensed ScriptX there are two solutions to this problem using the SetPrintSale function that enable the developer to deliver a solution to the user that 'just works':

  • Specify a scale factor that is known to scale the document sufficiently to fit the paper that it is known will be used. not ideal
  • Specify a low limit for the mimimum scale to fit scale.ideal
%

Note that the default minimum scale to fit scale factor for Internet Explorer is 60%.

The following svg has no containing div ...

Scalable Vector Graphics SVG

A box of text

This text is right aligned with the 1150 pixel wide box.

The following svg has a containing div ...

Scalable Vector Graphics SVG