2.3. Open a document

This function is available from the document menu.

Item Description

With this function you can load a SVG document from four sources :

  • from a svg file on your hard drive

  • from a image file on your hard drive

  • from a web URL

  • from the openclipart gallery

2.3.1. Loading a SVG file

Check the SVG file source radio button. Select the svg file with the browse button and load it.

Figure 2.2. Loading a SVG file

Loading a SVG file

If the document does not contains html audio/video controls, and if its size is different than (100%,100%), then the document can be edited :

  • with its real size, and scrollbars if needed

  • or with an adjusted size to the drawsvg window.

Otherwise, the document is edited with its defined size and this option is disabled.

2.3.2. Loading an image file

This mode allows to set an SVG from an image. The dimensions and the coordinate system of the document are identical to the image.

Check the image file source radio button. Select the image file with the browse button and load it.

Figure 2.3. Loading an image file

Loading an image file

By default, the document is edited with the size of the image.

2.3.3. Loading an URL

Check the url source radio button. Copy the URL of an SVG document from the browser to the edit field. Then view the URL and load it.

For example, to load https://upload.wikimedia.org/wikipedia/commons/f/f3/Blank_World_Map.svg

Figure 2.4. Loading a SVG URL

Loading a SVG URL

If the option save is checked, when saving, DRAWSVG will suggest to update the resource with an HTTP PUT Request with the document contents.

Figure 2.5. Saving a SVG URL

Saving a SVG URL

2.3.4. Loading a svg from openclipart gallery

OpenClipart is a well known WEB site with a lot of svg files free to use. You can search documents in the gallery with tags, author names.

DRAWSG has a navigation GUI in the gallery of OpenClipart that lets you edit it's documents directly.

Check the open clipart source radio button. Query the gallery, browse documents, look them and load the selected one.

Figure 2.6. Loading a SVG from OpenClipart gallery

Loading a SVG from OpenClipart gallery