The HaruDoc class

(PECL haru >= 0.0.1)

简介

Haru PDF Document Class.

类摘要

HaruDoc {
/* 方法 */
addPage ( void ) : object
addPageLabel ( int $first_page , int $style , int $first_num [, string $prefix = "" ] ) : bool
__construct ( void )
createOutline ( string $title [, object $parent_outline [, object $encoder ]] ) : object
getCurrentEncoder ( void ) : object
getCurrentPage ( void ) : object
getEncoder ( string $encoding ) : object
getFont ( string $fontname [, string $encoding ] ) : object
getInfoAttr ( int $type ) : string
getPageLayout ( void ) : int
getPageMode ( void ) : int
getStreamSize ( void ) : int
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 ) : object
loadTTC ( string $fontfile , int $index [, bool $embed = FALSE ] ) : string
loadTTF ( string $fontfile [, bool $embed = FALSE ] ) : string
loadType1 ( string $afmfile [, string $pfmfile ] ) : string
output ( void ) : bool
readFromStream ( int $bytes ) : string
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 ) : bool
}

预定义常量

Type Name Description
int HaruDoc::CS_DEVICE_GRAY  
int HaruDoc::CS_DEVICE_RGB  
int HaruDoc::CS_DEVICE_CMYK  
int HaruDoc::CS_CAL_GRAY  
int HaruDoc::CS_CAL_RGB  
int HaruDoc::CS_LAB  
int HaruDoc::CS_ICC_BASED  
int HaruDoc::CS_SEPARATION  
int HaruDoc::CS_DEVICE_N  
int HaruDoc::CS_INDEXED  
int HaruDoc::CS_PATTERN  
int HaruDoc::ENABLE_READ  
int HaruDoc::ENABLE_PRINT  
int HaruDoc::ENABLE_EDIT_ALL  
int HaruDoc::ENABLE_COPY  
int HaruDoc::ENABLE_EDIT  
int HaruDoc::ENCRYPT_R2  
int HaruDoc::ENCRYPT_R3  
int HaruDoc::INFO_AUTHOR  
int HaruDoc::INFO_CREATOR  
int HaruDoc::INFO_TITLE  
int HaruDoc::INFO_SUBJECT  
int HaruDoc::INFO_KEYWORDS  
int HaruDoc::INFO_CREATION_DATE  
int HaruDoc::INFO_MOD_DATE  
int HaruDoc::COMP_NONE  
int HaruDoc::COMP_TEXT  
int HaruDoc::COMP_IMAGE  
int HaruDoc::COMP_METADATA  
int HaruDoc::COMP_ALL  
int HaruDoc::PAGE_LAYOUT_SINGLE  
int HaruDoc::PAGE_LAYOUT_ONE_COLUMN  
int HaruDoc::PAGE_LAYOUT_TWO_COLUMN_LEFT  
int HaruDoc::PAGE_LAYOUT_TWO_COLUMN_RIGHT  
int HaruDoc::PAGE_MODE_USE_NONE  
int HaruDoc::PAGE_MODE_USE_OUTLINE  
int HaruDoc::PAGE_MODE_USE_THUMBS  
int HaruDoc::PAGE_MODE_FULL_SCREEN  

Table of Contents