Add Line Object to a PDF file
Contents
[
Hide
]Aspose.PDF for Java supports the feature to add graph objects (for example graph, line, rectangle etc.) to PDF documents. You also get the leverage to add Line object where you can also specify the dash pattern, color and other formatting for Line element.
The following code snippet shows how to add a Rectangle object that is filled with color.