PHP Class tFPDF, TeamPass

显示文件 Open project: nilsteampassnet/TeamPass Class Usage Examples

Public Properties

Property Type Description
$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

Public Methods

Method Description
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 )

Method Details

AcceptPageBreak() public method

public AcceptPageBreak ( )

AddFont() public method

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

AddPage() public method

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

AliasNbPages() public method

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

Cell() public method

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

Close() public method

public Close ( )

Error() public method

public Error ( $msg )

GetStringWidth() public method

public GetStringWidth ( $s )

GetX() public method

public GetX ( )

GetY() public method

public GetY ( )

Header() public method

public Header ( )

Image() public method

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

Line() public method

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

Ln() public method

public Ln ( $h = null )

MultiCell() public method

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

Open() public method

public Open ( )

Output() public method

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

PageNo() public method

public PageNo ( )

Rect() public method

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

SetAuthor() public method

public SetAuthor ( $author, $isUTF8 = false )

SetAutoPageBreak() public method

public SetAutoPageBreak ( $auto, $margin )

SetCompression() public method

public SetCompression ( $compress )

SetCreator() public method

public SetCreator ( $creator, $isUTF8 = false )

SetDisplayMode() public method

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

SetDrawColor() public method

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

SetFillColor() public method

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

SetFont() public method

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

SetFontSize() public method

public SetFontSize ( $size )

SetKeywords() public method

public SetKeywords ( $keywords, $isUTF8 = false )

SetLeftMargin() public method

public SetLeftMargin ( $margin )

SetLineWidth() public method

public SetLineWidth ( $width )

SetMargins() public method

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

SetRightMargin() public method

public SetRightMargin ( $margin )

SetSubject() public method

public SetSubject ( $subject, $isUTF8 = false )

SetTextColor() public method

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

SetTitle() public method

public SetTitle ( $title, $isUTF8 = false )

SetTopMargin() public method

public SetTopMargin ( $margin )

SetX() public method

public SetX ( $x )

SetXY() public method

public SetXY ( $x, $y )

SetY() public method

public SetY ( $y )

Text() public method

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

UTF8StringToArray() public method

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

UTF8ToUTF16BE() public method

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

Write() public method

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

_UTF8toUTF16() public method

public _UTF8toUTF16 ( $s )

__construct() public method

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

_beginpage() public method

public _beginpage ( $orientation, $size )

_checkoutput() public method

public _checkoutput ( )

_dochecks() public method

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

_dounderline() public method

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

_enddoc() public method

public _enddoc ( )

_endpage() public method

public _endpage ( )

_escape() public method

public _escape ( $s )

_getfontpath() public method

public _getfontpath ( )

_getpagesize() public method

public _getpagesize ( $size )

_loadfont() public method

public _loadfont ( $font )

_newobj() public method

public _newobj ( )

_out() public method

public _out ( $s )

_parsegif() public method

public _parsegif ( $file )

_parsejpg() public method

public _parsejpg ( $file )

_parsepng() public method

public _parsepng ( $file )

_parsepngstream() public method

public _parsepngstream ( $f, $file )

_putTTfontwidths() public method

public _putTTfontwidths ( &$font, $maxUni )

_putcatalog() public method

public _putcatalog ( )

_putfonts() public method

public _putfonts ( )

_putheader() public method

public _putheader ( )

_putimage() public method

public _putimage ( &$info )

_putimages() public method

public _putimages ( )

_putinfo() public method

public _putinfo ( )

_putpages() public method

public _putpages ( )

_putresourcedict() public method

public _putresourcedict ( )

_putresources() public method

public _putresources ( )

_putstream() public method

public _putstream ( $s )

_puttrailer() public method

public _puttrailer ( )

_putxobjectdict() public method

public _putxobjectdict ( )

_readint() public method

public _readint ( $f )

_readstream() public method

public _readstream ( $f, $n )

_textstring() public method

public _textstring ( $s )

Property Details

$AliasNbPages public_oe property

creator
public $AliasNbPages

$AutoPageBreak public_oe property

array of internal links
public $AutoPageBreak

$ColorFlag public_oe property

commands for text color
public $ColorFlag

$CoreFonts public_oe property

path containing fonts
public $CoreFonts

$CurOrientation public_oe property

default orientation
public $CurOrientation

$CurPageSize public_oe property

default page size
public $CurPageSize

$CurrentFont public_oe property

underlining flag
public $CurrentFont

$DefOrientation public_oe property

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

$DefPageSize public_oe property

standard page sizes
public $DefPageSize

$DrawColor public_oe property

current font size in user unit
public $DrawColor

$FillColor public_oe property

commands for drawing color
public $FillColor

$FontFamily public_oe property

array of encoding differences
public $FontFamily

$FontFiles public_oe property

array of used fonts
public $FontFiles

$FontSize public_oe property

current font size in points
public $FontSize

$FontSizePt public_oe property

current font info
public $FontSizePt

$FontStyle public_oe property

current font family
public $FontStyle

$InFooter public_oe property

flag set when processing header
public $InFooter

$InHeader public_oe property

threshold used to trigger page breaks
public $InHeader

$LayoutMode public_oe property

zoom display mode
public $LayoutMode

$LineWidth public_oe property

height of last printed cell
public $LineWidth

$PDFVersion public_oe property

alias for total number of pages
public $PDFVersion

$PageBreakTrigger public_oe property

automatic page breaking
public $PageBreakTrigger

$PageSizes public_oe property

current page size
public $PageSizes

$StdPageSizes public_oe property

current orientation
public $StdPageSizes

$TextColor public_oe property

commands for filling color
public $TextColor

$ZoomMode public_oe property

flag set when processing footer
public $ZoomMode

$author public_oe property

subject
public $author

$bMargin public_oe property

right margin
public $bMargin

$buffer public_oe property

array of object offsets
public $buffer

$cMargin public_oe property

page break margin
public $cMargin

$compress public_oe property

current document state
public $compress

$creator public_oe property

keywords
public $creator

$diffs public_oe property

array of font files
public $diffs

$fontpath public_oe property

line width in user unit
public $fontpath

$fonts public_oe property

array of core font names
public $fonts

$h public_oe property

dimensions of current page in points
public $h

$hPt public_oe property

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

$images public_oe property

word spacing
public $images

$k public_oe property

compression flag
public $k

$keywords public_oe property

author
public $keywords

$lMargin public_oe property

dimensions of current page in user unit
public $lMargin

$lasth public_oe property

current position in user unit
public $lasth

$n public_oe property

current page number
public $n

$offsets public_oe property

current object number
public $offsets

$page public_oe property

public $page

$pages public_oe property

buffer holding in-memory PDF
public $pages

$rMargin public_oe property

top margin
public $rMargin

$state public_oe property

array containing pages
public $state

$subject public_oe property

title
public $subject

$tMargin public_oe property

left margin
public $tMargin

$title public_oe property

layout display mode
public $title

$underline public_oe property

current font style
public $underline

$unifontSubset public_oe property

public $unifontSubset

$w public_oe property

dimensions of current page in points
public $w

$wPt public_oe property

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

$ws public_oe property

indicates whether fill and text colors are different
public $ws

$x public_oe property

cell margin
public $x

$y public_oe property

cell margin
public $y