PHP 클래스 tFPDF, TeamPass

파일 보기 프로젝트 열기: nilsteampassnet/TeamPass 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$AliasNbPages creator
$AutoPageBreak array of internal links
$ColorFlag commands for text color
$CoreFonts path containing fonts
$CurOrientation default orientation
$CurPageSize default page size
$CurrentFont underlining flag
$DefOrientation scale factor (number of points in user unit)
$DefPageSize standard page sizes
$DrawColor current font size in user unit
$FillColor commands for drawing color
$FontFamily array of encoding differences
$FontFiles array of used fonts
$FontSize current font size in points
$FontSizePt current font info
$FontStyle current font family
$InFooter flag set when processing header
$InHeader threshold used to trigger page breaks
$LayoutMode zoom display mode
$LineWidth height of last printed cell
$PDFVersion alias for total number of pages
$PageBreakTrigger automatic page breaking
$PageLinks array of used images
$PageSizes current page size
$StdPageSizes current orientation
$TextColor commands for filling color
$ZoomMode flag set when processing footer
$author subject
$bMargin right margin
$buffer array of object offsets
$cMargin page break margin
$compress current document state
$creator keywords
$diffs array of font files
$fontpath line width in user unit
$fonts array of core font names
$h dimensions of current page in points
$hPt used for pages with non default sizes or orientations
$images word spacing
$k compression flag
$keywords author
$lMargin dimensions of current page in user unit
$lasth current position in user unit
$links array of links in pages
$n current page number
$offsets current object number
$page
$pages buffer holding in-memory PDF
$rMargin top margin
$state array containing pages
$subject title
$tMargin left margin
$title layout display mode
$underline current font style
$unifontSubset
$w dimensions of current page in points
$wPt used for pages with non default sizes or orientations
$ws indicates whether fill and text colors are different
$x cell margin
$y cell margin

공개 메소드들

메소드 설명
AcceptPageBreak ( )
AddFont ( $family, $style = '', $file = '', $uni = false )
AddLink ( )
AddPage ( $orientation = '', $size = '' )
AliasNbPages ( $alias = '{nb}' )
Cell ( $w, $h, $txt = '', $border, $ln, $align = '', $fill = false, $link = '' )
Close ( )
Error ( $msg )
Footer ( )
GetStringWidth ( $s )
GetX ( )
GetY ( )
Header ( )
Image ( $file, $x = null, $y = null, $w, $h, $type = '', $link = '' )
Line ( $x1, $y1, $x2, $y2 )
Link ( $x, $y, $w, $h, $link )
Ln ( $h = null )
MultiCell ( $w, $h, $txt, $border, $align = 'J', $fill = false )
Open ( )
Output ( $name = '', $dest = '' )
PageNo ( )
Rect ( $x, $y, $w, $h, $style = '' )
SetAuthor ( $author, $isUTF8 = false )
SetAutoPageBreak ( $auto, $margin )
SetCompression ( $compress )
SetCreator ( $creator, $isUTF8 = false )
SetDisplayMode ( $zoom, $layout = 'default' )
SetDrawColor ( $r, $g = null, $b = null )
SetFillColor ( $r, $g = null, $b = null )
SetFont ( $family, $style = '', $size )
SetFontSize ( $size )
SetKeywords ( $keywords, $isUTF8 = false )
SetLeftMargin ( $margin )
SetLineWidth ( $width )
SetLink ( $link, $y, $page )
SetMargins ( $left, $top, $right = null )
SetRightMargin ( $margin )
SetSubject ( $subject, $isUTF8 = false )
SetTextColor ( $r, $g = null, $b = null )
SetTitle ( $title, $isUTF8 = false )
SetTopMargin ( $margin )
SetX ( $x )
SetXY ( $x, $y )
SetY ( $y )
Text ( $x, $y, $txt )
UTF8StringToArray ( $str ) Converts UTF-8 strings to codepoints array
UTF8ToUTF16BE ( $str, $setbom = true ) Converts UTF-8 strings to UTF16-BE.
Write ( $h, $txt, $link = '' )
_UTF8toUTF16 ( $s )
__construct ( $orientation = 'P', $unit = 'mm', $size = 'A4' ) ***************************************************************************** * Public methods * * *****************************************************************************
_beginpage ( $orientation, $size )
_checkoutput ( )
_dochecks ( ) ***************************************************************************** * Protected methods * * *****************************************************************************
_dounderline ( $x, $y, $txt )
_enddoc ( )
_endpage ( )
_escape ( $s )
_getfontpath ( )
_getpagesize ( $size )
_loadfont ( $font )
_newobj ( )
_out ( $s )
_parsegif ( $file )
_parsejpg ( $file )
_parsepng ( $file )
_parsepngstream ( $f, $file )
_putTTfontwidths ( &$font, $maxUni )
_putcatalog ( )
_putfonts ( )
_putheader ( )
_putimage ( &$info )
_putimages ( )
_putinfo ( )
_putpages ( )
_putresourcedict ( )
_putresources ( )
_putstream ( $s )
_puttrailer ( )
_putxobjectdict ( )
_readint ( $f )
_readstream ( $f, $n )
_textstring ( $s )

메소드 상세

AcceptPageBreak() 공개 메소드

public AcceptPageBreak ( )

AddFont() 공개 메소드

public AddFont ( $family, $style = '', $file = '', $uni = false )

AddPage() 공개 메소드

public AddPage ( $orientation = '', $size = '' )

AliasNbPages() 공개 메소드

public AliasNbPages ( $alias = '{nb}' )

Cell() 공개 메소드

public Cell ( $w, $h, $txt = '', $border, $ln, $align = '', $fill = false, $link = '' )

Close() 공개 메소드

public Close ( )

Error() 공개 메소드

public Error ( $msg )

GetStringWidth() 공개 메소드

public GetStringWidth ( $s )

GetX() 공개 메소드

public GetX ( )

GetY() 공개 메소드

public GetY ( )

Header() 공개 메소드

public Header ( )

Image() 공개 메소드

public Image ( $file, $x = null, $y = null, $w, $h, $type = '', $link = '' )

Line() 공개 메소드

public Line ( $x1, $y1, $x2, $y2 )

Ln() 공개 메소드

public Ln ( $h = null )

MultiCell() 공개 메소드

public MultiCell ( $w, $h, $txt, $border, $align = 'J', $fill = false )

Open() 공개 메소드

public Open ( )

Output() 공개 메소드

public Output ( $name = '', $dest = '' )

PageNo() 공개 메소드

public PageNo ( )

Rect() 공개 메소드

public Rect ( $x, $y, $w, $h, $style = '' )

SetAuthor() 공개 메소드

public SetAuthor ( $author, $isUTF8 = false )

SetAutoPageBreak() 공개 메소드

public SetAutoPageBreak ( $auto, $margin )

SetCompression() 공개 메소드

public SetCompression ( $compress )

SetCreator() 공개 메소드

public SetCreator ( $creator, $isUTF8 = false )

SetDisplayMode() 공개 메소드

public SetDisplayMode ( $zoom, $layout = 'default' )

SetDrawColor() 공개 메소드

public SetDrawColor ( $r, $g = null, $b = null )

SetFillColor() 공개 메소드

public SetFillColor ( $r, $g = null, $b = null )

SetFont() 공개 메소드

public SetFont ( $family, $style = '', $size )

SetFontSize() 공개 메소드

public SetFontSize ( $size )

SetKeywords() 공개 메소드

public SetKeywords ( $keywords, $isUTF8 = false )

SetLeftMargin() 공개 메소드

public SetLeftMargin ( $margin )

SetLineWidth() 공개 메소드

public SetLineWidth ( $width )

SetMargins() 공개 메소드

public SetMargins ( $left, $top, $right = null )

SetRightMargin() 공개 메소드

public SetRightMargin ( $margin )

SetSubject() 공개 메소드

public SetSubject ( $subject, $isUTF8 = false )

SetTextColor() 공개 메소드

public SetTextColor ( $r, $g = null, $b = null )

SetTitle() 공개 메소드

public SetTitle ( $title, $isUTF8 = false )

SetTopMargin() 공개 메소드

public SetTopMargin ( $margin )

SetX() 공개 메소드

public SetX ( $x )

SetXY() 공개 메소드

public SetXY ( $x, $y )

SetY() 공개 메소드

public SetY ( $y )

Text() 공개 메소드

public Text ( $x, $y, $txt )

UTF8StringToArray() 공개 메소드

Converts UTF-8 strings to codepoints array
public UTF8StringToArray ( $str )

UTF8ToUTF16BE() 공개 메소드

Converts UTF-8 strings to UTF16-BE.
public UTF8ToUTF16BE ( $str, $setbom = true )

Write() 공개 메소드

public Write ( $h, $txt, $link = '' )

_UTF8toUTF16() 공개 메소드

public _UTF8toUTF16 ( $s )

__construct() 공개 메소드

***************************************************************************** * Public methods * * *****************************************************************************
public __construct ( $orientation = 'P', $unit = 'mm', $size = 'A4' )

_beginpage() 공개 메소드

public _beginpage ( $orientation, $size )

_checkoutput() 공개 메소드

public _checkoutput ( )

_dochecks() 공개 메소드

***************************************************************************** * Protected methods * * *****************************************************************************
public _dochecks ( )

_dounderline() 공개 메소드

public _dounderline ( $x, $y, $txt )

_enddoc() 공개 메소드

public _enddoc ( )

_endpage() 공개 메소드

public _endpage ( )

_escape() 공개 메소드

public _escape ( $s )

_getfontpath() 공개 메소드

public _getfontpath ( )

_getpagesize() 공개 메소드

public _getpagesize ( $size )

_loadfont() 공개 메소드

public _loadfont ( $font )

_newobj() 공개 메소드

public _newobj ( )

_out() 공개 메소드

public _out ( $s )

_parsegif() 공개 메소드

public _parsegif ( $file )

_parsejpg() 공개 메소드

public _parsejpg ( $file )

_parsepng() 공개 메소드

public _parsepng ( $file )

_parsepngstream() 공개 메소드

public _parsepngstream ( $f, $file )

_putTTfontwidths() 공개 메소드

public _putTTfontwidths ( &$font, $maxUni )

_putcatalog() 공개 메소드

public _putcatalog ( )

_putfonts() 공개 메소드

public _putfonts ( )

_putheader() 공개 메소드

public _putheader ( )

_putimage() 공개 메소드

public _putimage ( &$info )

_putimages() 공개 메소드

public _putimages ( )

_putinfo() 공개 메소드

public _putinfo ( )

_putpages() 공개 메소드

public _putpages ( )

_putresourcedict() 공개 메소드

public _putresourcedict ( )

_putresources() 공개 메소드

public _putresources ( )

_putstream() 공개 메소드

public _putstream ( $s )

_puttrailer() 공개 메소드

public _puttrailer ( )

_putxobjectdict() 공개 메소드

public _putxobjectdict ( )

_readint() 공개 메소드

public _readint ( $f )

_readstream() 공개 메소드

public _readstream ( $f, $n )

_textstring() 공개 메소드

public _textstring ( $s )

프로퍼티 상세

$AliasNbPages 공개적으로 프로퍼티

creator
public $AliasNbPages

$AutoPageBreak 공개적으로 프로퍼티

array of internal links
public $AutoPageBreak

$ColorFlag 공개적으로 프로퍼티

commands for text color
public $ColorFlag

$CoreFonts 공개적으로 프로퍼티

path containing fonts
public $CoreFonts

$CurOrientation 공개적으로 프로퍼티

default orientation
public $CurOrientation

$CurPageSize 공개적으로 프로퍼티

default page size
public $CurPageSize

$CurrentFont 공개적으로 프로퍼티

underlining flag
public $CurrentFont

$DefOrientation 공개적으로 프로퍼티

scale factor (number of points in user unit)
public $DefOrientation

$DefPageSize 공개적으로 프로퍼티

standard page sizes
public $DefPageSize

$DrawColor 공개적으로 프로퍼티

current font size in user unit
public $DrawColor

$FillColor 공개적으로 프로퍼티

commands for drawing color
public $FillColor

$FontFamily 공개적으로 프로퍼티

array of encoding differences
public $FontFamily

$FontFiles 공개적으로 프로퍼티

array of used fonts
public $FontFiles

$FontSize 공개적으로 프로퍼티

current font size in points
public $FontSize

$FontSizePt 공개적으로 프로퍼티

current font info
public $FontSizePt

$FontStyle 공개적으로 프로퍼티

current font family
public $FontStyle

$InFooter 공개적으로 프로퍼티

flag set when processing header
public $InFooter

$InHeader 공개적으로 프로퍼티

threshold used to trigger page breaks
public $InHeader

$LayoutMode 공개적으로 프로퍼티

zoom display mode
public $LayoutMode

$LineWidth 공개적으로 프로퍼티

height of last printed cell
public $LineWidth

$PDFVersion 공개적으로 프로퍼티

alias for total number of pages
public $PDFVersion

$PageBreakTrigger 공개적으로 프로퍼티

automatic page breaking
public $PageBreakTrigger

$PageSizes 공개적으로 프로퍼티

current page size
public $PageSizes

$StdPageSizes 공개적으로 프로퍼티

current orientation
public $StdPageSizes

$TextColor 공개적으로 프로퍼티

commands for filling color
public $TextColor

$ZoomMode 공개적으로 프로퍼티

flag set when processing footer
public $ZoomMode

$author 공개적으로 프로퍼티

subject
public $author

$bMargin 공개적으로 프로퍼티

right margin
public $bMargin

$buffer 공개적으로 프로퍼티

array of object offsets
public $buffer

$cMargin 공개적으로 프로퍼티

page break margin
public $cMargin

$compress 공개적으로 프로퍼티

current document state
public $compress

$creator 공개적으로 프로퍼티

keywords
public $creator

$diffs 공개적으로 프로퍼티

array of font files
public $diffs

$fontpath 공개적으로 프로퍼티

line width in user unit
public $fontpath

$fonts 공개적으로 프로퍼티

array of core font names
public $fonts

$h 공개적으로 프로퍼티

dimensions of current page in points
public $h

$hPt 공개적으로 프로퍼티

used for pages with non default sizes or orientations
public $hPt

$images 공개적으로 프로퍼티

word spacing
public $images

$k 공개적으로 프로퍼티

compression flag
public $k

$keywords 공개적으로 프로퍼티

author
public $keywords

$lMargin 공개적으로 프로퍼티

dimensions of current page in user unit
public $lMargin

$lasth 공개적으로 프로퍼티

current position in user unit
public $lasth

$n 공개적으로 프로퍼티

current page number
public $n

$offsets 공개적으로 프로퍼티

current object number
public $offsets

$page 공개적으로 프로퍼티

public $page

$pages 공개적으로 프로퍼티

buffer holding in-memory PDF
public $pages

$rMargin 공개적으로 프로퍼티

top margin
public $rMargin

$state 공개적으로 프로퍼티

array containing pages
public $state

$subject 공개적으로 프로퍼티

title
public $subject

$tMargin 공개적으로 프로퍼티

left margin
public $tMargin

$title 공개적으로 프로퍼티

layout display mode
public $title

$underline 공개적으로 프로퍼티

current font style
public $underline

$unifontSubset 공개적으로 프로퍼티

public $unifontSubset

$w 공개적으로 프로퍼티

dimensions of current page in points
public $w

$wPt 공개적으로 프로퍼티

used for pages with non default sizes or orientations
public $wPt

$ws 공개적으로 프로퍼티

indicates whether fill and text colors are different
public $ws

$x 공개적으로 프로퍼티

cell margin
public $x

$y 공개적으로 프로퍼티

cell margin
public $y