Add Line Object to a PDF file

Contents
[ ]

The following code snippet shows how to add a Rectangle object that is filled with color.