class PDF::Rectangle
- PDF::Rectangle
- Reference
- Object
Overview
Rectangles are used to describe locations on a page and bounding boxes for a
variety of objects, such as fonts. A rectangle is written as an array of four numbers
giving the coordinates of a pair of diagonally opposite corners. Typically, the
array takes the form
[llx lly urx ury]
specifying the lower-left x, lower-left y, upper-right x, and upper-right y coordinates of the rectangle, in that order.
Note: Although rectangles are conventionally specified by their lower-left and upperright corners,
it is acceptable to specify any two diagonally opposite corners.
Applications that process PDF should be prepared to normalize such rectangles in situations
where specific corners are required.
Included Modules
Defined in:
pdf/data/rectangle.crInstance Method Summary
-
#format : String
Typically, the array takes the form
[llx lly urx ury]
- #initizlize(llx : Number, lly : Number, urx : Number, ury : Number)
- #llx : Float64 | Int64 | Nil
- #lly : Float64 | Int64 | Nil
-
#render_to_pdf(io : IO) : IO
render your data into a pdf file , and return the rendered IO
- #urx : Float64 | Int64 | Nil
- #ury : Float64 | Int64 | Nil
Instance methods inherited from module PDF::Renderable
render_to_pdf(io : IO) : IO
render_to_pdf
Instance Method Detail
render your data into a pdf file , and return the rendered IO