Haru PDFTable of Contents
The HaruException classIntroductionHaru PDF Exception Class. Class synopsisHaruException
class HaruException
extends
Exception
{
/* Inherits */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The HaruDoc classIntroductionHaru PDF Document Class. Class synopsisHaruDoc
class HaruDoc
{
/* Methods */
object addPage
( void
)
bool addPageLabel
( int
$first_page
, int $style
, int $first_num
[, string $prefix = ""
] )
__construct
( void
)
object createOutline
( string
$title
[, object $parent_outline
[, object $encoder
]] )
object getCurrentEncoder
( void
)
object getCurrentPage
( void
)
object getEncoder
( string
$encoding
)
object getFont
( string
$fontname
[, string $encoding
] )
string getInfoAttr
( int
$type
)
int getPageLayout
( void
)
int getPageMode
( void
)
int getStreamSize
( void
)
object insertPage
( object
$page
)
object loadJPEG
( string
$filename
)
object loadPNG
( string
$filename
[, bool $deferred = false
] )
object loadRaw
( string
$filename
, int $width
, int $height
, int $color_space
)
string loadTTC
( string
$fontfile
, int $index
[, bool $embed = false
] )
string loadTTF
( string
$fontfile
[, bool $embed = false
] )
string loadType1
( string
$afmfile
[, string $pfmfile
] )
bool output
( void
)
string readFromStream
( int
$bytes
)
bool resetError
( void
)
bool resetStream
( void
)
bool save
( string
$file
)
bool saveToStream
( void
)
bool setCompressionMode
( int
$mode
)
bool setCurrentEncoder
( string
$encoding
)
bool setEncryptionMode
( int
$mode
[, int $key_len = 5
] )
bool setInfoAttr
( int
$type
, string $info
)
bool setInfoDateAttr
( int
$type
, int $year
, int $month
, int $day
, int $hour
, int $min
, int $sec
, string $ind
, int $off_hour
, int $off_min
)
bool setOpenAction
( object
$destination
)
bool setPageLayout
( int
$layout
)
bool setPageMode
( int
$mode
)
bool setPagesConfiguration
( int
$page_per_pages
)
bool setPassword
( string
$owner_password
, string $user_password
)
bool setPermission
( int
$permission
)
bool useCNSEncodings
( void
)
bool useCNSFonts
( void
)
bool useCNTEncodings
( void
)
bool useCNTFonts
( void
)
bool useJPEncodings
( void
)
bool useJPFonts
( void
)
bool useKREncodings
( void
)
bool useKRFonts
( void
)
}Predefined Constants
The HaruPage classIntroductionHaru PDF Page Class. Class synopsisHaruPage
class HaruPage
{
/* Methods */
bool arc
( float
$x
, float $y
, float $ray
, float $ang1
, float $ang2
)
bool beginText
( void
)
bool circle
( float
$x
, float $y
, float $ray
)
bool closePath
( void
)
bool concat
( float
$a
, float $b
, float $c
, float $d
, float $x
, float $y
)
object createDestination
( void
)
object createLinkAnnotation
( array
$rectangle
, object $destination
)
object createTextAnnotation
( array
$rectangle
, string $text
[, object $encoder
] )
object createURLAnnotation
( array
$rectangle
, string $url
)
bool curveTo2
( float
$x2
, float $y2
, float $x3
, float $y3
)
bool curveTo3
( float
$x1
, float $y1
, float $x3
, float $y3
)
bool curveTo
( float
$x1
, float $y1
, float $x2
, float $y2
, float $x3
, float $y3
)
bool drawImage
( object
$image
, float $x
, float $y
, float $width
, float $height
)
bool ellipse
( float
$x
, float $y
, float $xray
, float $yray
)
bool endPath
( void
)
bool endText
( void
)
bool eofill
( void
)
bool eoFillStroke
([ bool
$close_path = false
] )
bool fill
( void
)
bool fillStroke
([ bool
$close_path = false
] )
float getCharSpace
( void
)
array getCMYKFill
( void
)
array getCMYKStroke
( void
)
object getCurrentFont
( void
)
float getCurrentFontSize
( void
)
array getCurrentPos
( void
)
array getCurrentTextPos
( void
)
array getDash
( void
)
int getFillingColorSpace
( void
)
float getFlatness
( void
)
int getGMode
( void
)
float getGrayFill
( void
)
float getGrayStroke
( void
)
float getHeight
( void
)
float getHorizontalScaling
( void
)
int getLineCap
( void
)
int getLineJoin
( void
)
float getLineWidth
( void
)
float getMiterLimit
( void
)
array getRGBFill
( void
)
array getRGBStroke
( void
)
int getStrokingColorSpace
( void
)
float getTextLeading
( void
)
array getTextMatrix
( void
)
int getTextRenderingMode
( void
)
float getTextRise
( void
)
float getTextWidth
( string
$text
)
array getTransMatrix
( void
)
float getWidth
( void
)
float getWordSpace
( void
)
bool lineTo
( float
$x
, float $y
)
int measureText
( string
$text
, float $width
[, bool $wordwrap = false
] )
bool moveTextPos
( float
$x
, float $y
[, bool $set_leading = false
] )
bool moveTo
( float
$x
, float $y
)
bool moveToNextLine
( void
)
bool rectangle
( float
$x
, float $y
, float $width
, float $height
)
bool setCharSpace
( float
$char_space
)
bool setCMYKFill
( float
$c
, float $m
, float $y
, float $k
)
bool setCMYKStroke
( float
$c
, float $m
, float $y
, float $k
)
bool setDash
( array
$pattern
, int $phase
)
bool setFlatness
( float
$flatness
)
bool setFontAndSize
( object
$font
, float $size
)
bool setGrayFill
( float
$value
)
bool setGrayStroke
( float
$value
)
bool setHeight
( float
$height
)
bool setHorizontalScaling
( float
$scaling
)
bool setLineCap
( int
$cap
)
bool setLineJoin
( int
$join
)
bool setLineWidth
( float
$width
)
bool setMiterLimit
( float
$limit
)
bool setRGBFill
( float
$r
, float $g
, float $b
)
bool setRGBStroke
( float
$r
, float $g
, float $b
)
bool setRotate
( int
$angle
)
bool setSize
( int
$size
, int $direction
)
bool setSlideShow
( int
$type
, float $disp_time
, float $trans_time
)
bool setTextLeading
( float
$text_leading
)
bool setTextMatrix
( float
$a
, float $b
, float $c
, float $d
, float $x
, float $y
)
bool setTextRenderingMode
( int
$mode
)
bool setTextRise
( float
$rise
)
bool setWidth
( float
$width
)
bool setWordSpace
( float
$word_space
)
bool showText
( string
$text
)
bool showTextNextLine
( string
$text
[, float $word_space = 0
[, float $char_space = 0
]] )
bool stroke
([ bool
$close_path = false
] )
bool textOut
( float
$x
, float $y
, string $text
)
bool textRect
( float
}$left
, float $top
, float $right
, float $bottom
, string $text
[, int $align = HaruPage::TALIGN_LEFT
] )Predefined Constants
The HaruFont classIntroductionHaru PDF Font Class. Class synopsisHaruFont
class HaruFont
{
/* Methods */
int getAscent
( void
)
int getCapHeight
( void
)
int getDescent
( void
)
string getEncodingName
( void
)
string getFontName
( void
)
array getTextWidth
( string
$text
)
int getUnicodeWidth
( int
$character
)
int getXHeight
( void
)
int measureText
( string
}$text
, float $width
, float $font_size
, float $char_space
, float $word_space
[, bool $word_wrap = false
] )The HaruImage classIntroductionHaru PDF Image Class. Class synopsisHaruImage
class HaruImage
{
/* Methods */
int getBitsPerComponent
( void
)
string getColorSpace
( void
)
int getHeight
( void
)
array getSize
( void
)
int getWidth
( void
)
bool setColorMask
( int
$rmin
, int $rmax
, int $gmin
, int $gmax
, int $bmin
, int $bmax
)
bool setMaskImage
( object
}$mask_image
)The HaruEncoder classIntroductionHaru PDF Encoder Class. Class synopsisHaruEncoder
class HaruEncoder
{
/* Methods */
int getByteType
( string
$text
, int $index
)
int getType
( void
)
int getUnicode
( int
$character
)
int getWritingMode
( void
)
}Predefined Constants
The HaruOutline classIntroductionHaru PDF Outline Class. Class synopsisHaruOutline
class HaruOutline
{
/* Methods */
bool setDestination
( object
$destination
)
bool setOpened
( bool
}$opened
)The HaruAnnotation classIntroductionHaru PDF Annotation Class. Class synopsisHaruAnnotation
class HaruAnnotation
{
/* Methods */
bool setBorderStyle
( float
$width
, int $dash_on
, int $dash_off
)
bool setHighlightMode
( int
$mode
)
bool setIcon
( int
$icon
)
bool setOpened
( bool
}$opened
)Predefined Constants
The HaruDestination classIntroductionHaru PDF Destination Class. Class synopsisHaruDestination
class HaruDestination
{
/* Methods */
bool setFit
( void
)
bool setFitB
( void
)
bool setFitBH
( float
$top
)
bool setFitBV
( float
$left
)
bool setFitH
( float
$top
)
bool setFitR
( float
$left
, float $bottom
, float $right
, float $top
)
bool setFitV
( float
$left
)
bool setXYZ
( float
}$left
, float $top
, float $zoom
) |