Home

Awesome

JFreeSVG

Version 5.0.6, by David Gilbert, 23 June 2024.

(C)opyright 2013-present, by David Gilbert. All rights reserved.

Maven Central

Overview

JFreeSVG is a graphics library for the Java(tm) platform that allows you to generate content in SVG format using the standard Java2D drawing API (Graphics2D). JFreeSVG is light-weight, fast, and has no dependencies other than the Java runtime (11 or later).

Sample from JFreeChart

Getting Started

The Javadocs for the SVGGraphics2D class gives examples for typical usage, and if you are already familiar with the Java2D APIs, then all you need to do is add the JFreeSVG dependency and start coding.

Oracle provides tutorials for Java2D here:

There are some demonstration applications in the JFree-Demos project at GitHub.

Include

JFreeSVG is published to the Central Repository. You can include it in your projects with the following dependency:

<dependency>
    <groupId>org.jfree</groupId>
    <artifactId>org.jfree.svg</artifactId>
    <version>5.0.6</version>
</dependency>

JFreeSVG is a modular library with the module name org.jfree.svg.

To use JFreeSVG with Java 8, you can use the following (note the different artifact ID):

<dependency>
    <groupId>org.jfree</groupId>
    <artifactId>jfreesvg</artifactId>
    <version>3.4.3</version>
</dependency>

Build

You can build JFreeSVG from sources using Maven:

mvn clean verify

To generate the Javadocs:

mvn clean compile javadoc:javadoc

Testing

JFreeSVG is being tested using Graphics2D Tester and produces the output shown below. There are several areas that still need work:

jfreesvg

License

JFreeSVG is free software under the terms of the GNU General Public License version 3 (GPLv3) or later. The license file is included in this distribution (gpl-3.0.txt).

Please note that JFreeSVG is distributed WITHOUT ANY WARRANTY; without even 
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
Please refer to the license for details.

If you prefer not to be bound by the terms of the GPLv3, you can obtain an alternative license by sponsoring the JFree project:

Change History

Version 5.0.6 (23 June 2024)

Version 5.0.5 (19 February 2023)

Version 5.0.4 (9 January 2023)

Version 5.0.3 (22 June 2022)

Version 5.0.2 (7 November 2021)

Version 5.0.1 (4 August 2021)

Version 5.0 (12 June 2021)

Version 4.2 (10 January 2021)

Version 4.1 (26 March 2020)

Version 4.0 (27 February 2020)

Version 3.4 (10 February 2019)

Version 3.3 (7 November 2017)

Version 3.2 (9 October 2016)

Version 3.1 (30 April 2016)

Version 3.0 (8 June 2015)

Version 2.1 (4 August 2014)

Version 2.0 (30 July 2014)

Version 1.9 (6 May 2014)

Version 1.8 (11 April 2014)

Version 1.7 (25 February 2014)

Version 1.6 (18 December 2013)

Version 1.5 (18 December 2013)

Version 1.4 (24 October 2013)

Version 1.3 (24 September 2013)

Version 1.2 (13 September 2013)

Version 1.1 (4 September 2013)

Version 1.0 (31 July 2013)