Eps
class Eps (View source)
This Class is EPS Library and helps in developing structure of EPS Schema Export
Properties
string | $font | ||
int | $fontSize | ||
string | $stringCommands | %!PS-Adobe-3.0 EPSF-3.0 This is the MUST first comment to include it shows/tells that the Post Script document is purely under Document Structuring Convention [DSC] and is Compliant Encapsulated Post Script Document |
Methods
Set document title
Set document author
Set document creation date
Set document orientation
Set the font and size
Get the font
Get the font Size
Draw the line
Draw the rectangle
Set the current point
Output/Display the text
Output the text at specified co-ordinates
Ends EPS Document
No description
Details
void
setTitle(string $value)
Set document title
void
setAuthor(string $value)
Set document author
void
setDate(string $value)
Set document creation date
void
setOrientation(string $orientation)
Set document orientation
void
setFont(string $value, int $size)
Set the font and size
font can be set whenever needed in EPS
string
getFont()
Get the font
int
getFontSize()
Get the font Size
void
line(int|float $xFrom = 0, int|float $yFrom = 0, int|float $xTo = 0, int|float $yTo = 0, int $lineWidth = 0)
Draw the line
drawing the lines from x,y source to x,y destination and set the width of the line. lines helps in showing relationships of tables
void
rect(int|float $xFrom, int|float $yFrom, int|float $xTo, int|float $yTo, int $lineWidth)
Draw the rectangle
drawing the rectangle from x,y source to x,y destination and set the width of the line. rectangles drawn around the text shown of fields
void
moveTo(int|float $x, int|float $y)
Set the current point
The moveto operator takes two numbers off the stack and treats them as x and y coordinates to which to move. The coordinates specified become the current point.
void
show(string $text)
Output/Display the text
void
showXY(string $text, int|float $x, int|float $y)
Output the text at specified co-ordinates
void
endEpsDoc()
Ends EPS Document
string
getOutputData()
No description