What is Graph?

[ ]

Aspose.PDF for Java also supports adding graphs to PDF documents. For this purpose, the Graph class is provided. Graph is a paragraph level element and it can be added to the Paragraphs collection in a Page instance. A Graph instance contains a collection of Shapes.

The following types of shapes are supported by the Graph class:

  • Arc
  • Circle
  • Curve
  • Line
  • Rectangle
  • Ellipse

The above details are also depicted in the figures below:

Figure: Graph Hierarchy