code: @SuppressWarnings({"WeakerAccess", "unused"})
     public void  setDocumentViewBox(float minX, float minY, float width, float height)
     {
        if (this.rootElement == null)
           throw new IllegalArgumentException("SVG document is empty");
  
        this.rootElement.viewBox = new Box(minX, minY, width, height);
     }
docs: Change the document view box by altering the "viewBox" attribute
  of the root {@code <svg>} element.
  <p>
  The viewBox generally describes the bounding box dimensions of the
  document contents.  A valid viewBox is necessary if you want the
  document scaled to fit the canvas or viewport the document is to be
  rendered into.
  <p>
  By setting a viewBox that describes only a portion of the document,
  you can reproduce the effect of image sprites.
  
  @param minX the left coordinate of the viewBox in pixels
  @param minY the top coordinate of the viewBox in pixels.
  @param width the width of the viewBox in pixels
  @param height the height of the viewBox in pixels
  @throws IllegalArgumentException if there is no current SVG document loaded.