Method: EideticPDF::DocumentWriter#rectangle

Defined in:
lib/epdfdw.rb

#rectangle(x, y, width, height, options = {}) ⇒ Object

Draw a rectangle with the specified width and height and its top, left corner at (x, y).

The following options apply:

:border

If true or a color, a border is drawn with the current or specified line_color, respectively. Defaults to true.

:fill

If true or a color, the area is filled with the current or specified fill_color, respectively. Defaults to false.

:clip

If true and a block is given, the shape acts as a clipping boundary for anything drawn within the supplied block.

:reverse

Draw polygon clockwise. This is useful for drawing hollow shapes.

These current settings also apply: line_color, line_width, line_dash_pattern and fill_color.



257
258
259
# File 'lib/epdfdw.rb', line 257

def rectangle(x, y, width, height, options={})
  cur_page.rectangle(x, y, width, height, options)
end