Box

Top  Previous  Next
Box( {init xPos, init yPos}, {final xPos, final yPos}, [fill percent] ) => draws a box (rectangle) from initial {x,y} position to final {x,y} position. When creating a PDF document, optionally fills the created box with gray according to fill percent value.

 

Init yPos (numeric)  : Vertical position of box corner according to coordinate system.

 

Init xPos (numeric)   : Horizontal position of box corner to start drawing the box.

 

Final yPos (numeric) : Vertical position of opposite box corner.

 

Final xPos (numeric) : Horizontal position of opposite box corner.

 

Fill percent (numeric) : numeric value in the range of 0 to 100, indicating the amount of gray that should be used to fill the box, the higher the number the darker will be the filling, a value between 5 to 20 will provide a gray area as a background, suitable for foreground text, or other data. Default for fill percent is 0 (none).