drawsvg iconDRAWSVG user's guide
PreviousNextContentsPDFdrawsvg home

3.2. Create new document

This function is available from the document menu .

Item Description
Image icon-new.svg This function creates a new SVG document by specifying its dimensions: the "viewBox" attribute of the SVG document and the window display size.

Figure 3.1. New SVG

New SVG

The document size is fully characterized by :

The display dimensions can be defined as:

When the window dimensions are fixed, it is advisable to check the equality of the proportions of the display dimensions and the viewBox dimensions to ensure correct publication of the document.

If not equals, the panel indicates the differences between the two ratios and the OK button is deactivated.

The control can be removed to force the change.

Image dimensions-doc-ratios.png

In most cases the dimensions of the viewBox are set according to the content of the document and then the display dimensions are defined accordingly.

The display dimensions can thus be defined from those of the viewBox with the tools bar: Image create-doc-window-tools.png

Otherwise if the dimensions of the viewBox are fixed from those of the display, The viewbox coordinates can be defined :