drawsvg iconDRAWSVG user's manual
PreviousNextContentsPDFdrawsvg

12.1. Integration by URL

This solution can only be used if your svg documents can be edited and updated by URL with a service (REST) to read (HTTP GET) documents and update them (HTTP PUT).

This use case is done with the ' svgrurl ' entry with two parameters:

  1. the url parameter to specify the encoded url of the document to be edited.

  2. the save parameter with true or false value.

    If true , when saving the document, DRAWSVG will send a put request to the url with the document contents to save it (see save document ).

  3. the fullWindow parameter with true (default) or false value.

    If true the document is loaded in full screen mode.

The general syntax is :

https://drawsvg.org/drawsvg.html#svgurl:?url=encoded_url&save=true

To call DRAW-SVG with the svgurl entry, use an HTML 'a' element or an iframe element :

<a href='https://drawsvg.org/drawsvg.html#svgurl:?url=encoded_url&save=true'>edit with drawsvg</a>

Try this sample of loading the document jay.svg from freesvg.org .

https://drawsvg.org/drawsvg.html#svgurl:?url=https%3A%2F%2Ffreesvg.org%2Fstorage%2Fzip%2Fblog%2Fjay.svg