-
Notifications
You must be signed in to change notification settings - Fork 46
Postscript API's Internal Stack
shairontoledo edited this page Sep 13, 2010
·
1 revision
Public variables
Ruby Symbol | Postscript Type | Access | Description |
---|---|---|---|
:row | integer | R | Number of the current row |
:current_row | integer | R | Y coordinate of the row |
:row_height | float(real) | RW | Row height |
:row_padding | float(real) | RW | Padding between rows |
:limit_top | float(real) | RW | page’s top minus :margin_top |
:limit_right | float(real) | RW | page’s right side minus :margin_right |
:limit_bottom | float(real) | RW | Page’s bottom minus :margin_bottom |
:limit_left | float(real) | RW | Page’s left minus :margin_left |
:area_x | float(real) | RW | Area between :margin_left and :margin_right |
:area_y | float(real) | RW | Area between :margin_top e :margin_bottom |
:fontsize | float(real) | RW | Font size |
:font_normal | dict(font) | RW | normal |
:font_bold | dict(font) | RW | Bold font |
:font_italic | dict(font) | RW | Italic font |
:font_bold_italic | dict(font) | RW | font bold and italic |
:col_padding | float | RW | Column padding (blank space between the columns) |
:col | integer | R | Current column |
:headings? | bool | RW | returns true if it’s a header |
:current_table_row | integer | R | Table’s current line relative to the document. |
:current_page | integer | R | Current page number |
:count_pages | integer | RW | Total pages |
:X | {} proc => float/integer | R | current position X axis |
:Y | {} proc => float/integer | R | current position Y axis |
:pagesize | Array(integer) | RW | Page size. i.e.: [400,300] |