Pdf
extends Fpdf
in package
Table of Contents
Constants
- FPDF_FONTPATH = '/font/'
- FPDF_VERSION = '1.6'
Properties
- $aliasNbPages : mixed
- $author : mixed
- $autoPageBreak : mixed
- $bMargin : mixed
- $buffer : mixed
- $cMargin : mixed
- $colorFlag : mixed
- $compress : mixed
- $coreFonts : mixed
- $creator : mixed
- $curOrientation : mixed
- $curPageFormat : mixed
- $currentFont : mixed
- $defOrientation : mixed
- $defPageFormat : mixed
- $diffs : mixed
- $drawColor : mixed
- $fillColor : mixed
- $fontFamily : mixed
- $fontFiles : mixed
- $fonts : mixed
- $fontSize : mixed
- $fontSizePt : mixed
- $fontStyle : mixed
- $h : mixed
- $hPt : mixed
- $images : mixed
- $inFooter : mixed
- $inHeader : mixed
- $k : mixed
- $keywords : mixed
- $lasth : mixed
- $layoutMode : mixed
- $lineWidth : mixed
- $links : mixed
- $lMargin : mixed
- $n : mixed
- $offsets : mixed
- $page : mixed
- $pageBreakTrigger : mixed
- $pageFormats : mixed
- $PageLinks : mixed
- $pages : mixed
- $pageSizes : mixed
- $pdfVersion : mixed
- $rMargin : mixed
- $state : mixed
- $subject : mixed
- $textColor : mixed
- $title : mixed
- $tMargin : mixed
- $underline : mixed
- $w : mixed
- $wPt : mixed
- $ws : mixed
- $x : mixed
- $y : mixed
- $zoomMode : mixed
- $abcSet : mixed
- $angle : mixed
- $aSet : mixed
- $bSet : mixed
- $cSet : mixed
- $jStart : mixed
- $jSwap : mixed
- $setFrom : mixed
- $setTo : mixed
- $t128 : mixed
Methods
- __construct() : mixed
- acceptPageBreak() : mixed
- addFont() : mixed
- addlink() : mixed
- addPage() : mixed
- aliasNbPages() : mixed
- cell() : mixed
- cellFit() : mixed
- Celula com escala horizontal caso o texto seja muito largo
- cellFitScale() : mixed
- Celula com escalamento horizontal somente se necessário
- cellFitScaleForce() : mixed
- Celula com escalamento forçado
- cellFitSpace() : mixed
- Celula com espaçamento de caracteres somente se necessário
- cellFitSpaceForce() : mixed
- Celula com espaçamento de caracteres forçado
- close() : mixed
- code128() : mixed
- Imprime barcode 128
- dashedHLine() : none
- Desenha uma linha horizontal tracejada com o FPDF
- dashedRect() : mixed
- Desenha um retangulo com linhas tracejadas
- dashedVLine() : none
- Desenha uma linha vertical tracejada com o FPDF
- drawTextBox() : mixed
- Monta uma caixa de texto
- error() : mixed
- footer() : mixed
- getNumLines() : number
- pGetNumLines Obtem o numero de linhas usadas pelo texto usando a fonte especifidada
- getPdf() : mixed
- getStringWidth() : mixed
- getX() : mixed
- getY() : mixed
- header() : mixed
- image() : mixed
- line() : mixed
- link() : mixed
- ln() : mixed
- multicell() : mixed
- open() : mixed
- output() : mixed
- pageNo() : mixed
- rect() : mixed
- rotate() : mixed
- Rotaciona para impressão paisagem (landscape)
- roundedRect() : mixed
- Desenha um retangulo com cantos arredondados
- setAuthor() : mixed
- setAutoPageBreak() : mixed
- setCompression() : mixed
- setCreator() : mixed
- setDisplayMode() : mixed
- setDrawColor() : mixed
- setFillColor() : mixed
- setFont() : mixed
- setFontSize() : mixed
- setKeywords() : mixed
- setLeftMargin() : mixed
- setLineWidth() : mixed
- setlink() : mixed
- setMargins() : mixed
- setRightMargin() : mixed
- setSubject() : mixed
- settextColor() : mixed
- setTitle() : mixed
- setTopMargin() : mixed
- setX() : mixed
- setXY() : mixed
- setY() : mixed
- text() : mixed
- textBox() : number
- pTextBox Cria uma caixa de texto com ou sem bordas. Esta função perimite o alinhamento horizontal ou vertical do texto dentro da caixa.
- textBox90() : number
- Cria uma caixa de texto com ou sem bordas. Esta função permite o alinhamento horizontal ou vertical do texto dentro da caixa, rotacionando-o em 90 graus, essa função precisa que a classe PDF contenha a função Rotate($angle,$x,$y); Atenção : Esta função é dependente de outras classes de FPDF Ex. $this->__textBox90(2,20,34,8,'Texto',array('fonte'=>$this->fontePadrao, 'size'=>10,'style='B'),'C','L',FALSE,'http://www.nfephp.org')
- wordWrap() : int
- Quebra o texto para caber na caixa
- write() : mixed
- beginPage() : mixed
- dochecks() : mixed
- doUnderLine() : mixed
- endDoc() : mixed
- endPage() : mixed
- escape() : mixed
- getFontPath() : mixed
- getpageformat() : mixed
- newObj() : mixed
- out() : mixed
- parseGIF() : mixed
- parseJPG() : mixed
- parsePNG() : mixed
- putCatalog() : mixed
- putFonts() : mixed
- putHeader() : mixed
- putImages() : mixed
- putInfo() : mixed
- putPages() : mixed
- putResourceDict() : mixed
- putResources() : mixed
- putStream() : mixed
- putTrailer() : mixed
- putXobjectDict() : mixed
- readint() : mixed
- readstream() : mixed
- textString() : mixed
- utf8Toutf16() : mixed
- arc() : mixed
- Desenha o arco para arredondar o canto do retangulo
- convertToIso() : string
- Converte os caracteres para ISO-88591.
- drawRows() : int
- Insere linhas de texto na caixa
- mbGetStringLength() : int
- Patch para trabalhar com textos de duplo byte CJK
Constants
FPDF_FONTPATH
public
mixed
FPDF_FONTPATH
= '/font/'
FPDF_VERSION
public
mixed
FPDF_VERSION
= '1.6'
Properties
$aliasNbPages
public
mixed
$aliasNbPages
$author
public
mixed
$author
$autoPageBreak
public
mixed
$autoPageBreak
$bMargin
public
mixed
$bMargin
$buffer
public
mixed
$buffer
$cMargin
public
mixed
$cMargin
$colorFlag
public
mixed
$colorFlag
$compress
public
mixed
$compress
$coreFonts
public
mixed
$coreFonts
$creator
public
mixed
$creator
$curOrientation
public
mixed
$curOrientation
$curPageFormat
public
mixed
$curPageFormat
$currentFont
public
mixed
$currentFont
$defOrientation
public
mixed
$defOrientation
$defPageFormat
public
mixed
$defPageFormat
$diffs
public
mixed
$diffs
$drawColor
public
mixed
$drawColor
$fillColor
public
mixed
$fillColor
$fontFamily
public
mixed
$fontFamily
$fontFiles
public
mixed
$fontFiles
$fonts
public
mixed
$fonts
$fontSize
public
mixed
$fontSize
$fontSizePt
public
mixed
$fontSizePt
$fontStyle
public
mixed
$fontStyle
$h
public
mixed
$h
$hPt
public
mixed
$hPt
$images
public
mixed
$images
$inFooter
public
mixed
$inFooter
$inHeader
public
mixed
$inHeader
$k
public
mixed
$k
$keywords
public
mixed
$keywords
$lasth
public
mixed
$lasth
$layoutMode
public
mixed
$layoutMode
$lineWidth
public
mixed
$lineWidth
$links
public
mixed
$links
$lMargin
public
mixed
$lMargin
$n
public
mixed
$n
$offsets
public
mixed
$offsets
$page
public
mixed
$page
$pageBreakTrigger
public
mixed
$pageBreakTrigger
$pageFormats
public
mixed
$pageFormats
$PageLinks
public
mixed
$PageLinks
$pages
public
mixed
$pages
$pageSizes
public
mixed
$pageSizes
$pdfVersion
public
mixed
$pdfVersion
$rMargin
public
mixed
$rMargin
$state
public
mixed
$state
$subject
public
mixed
$subject
$textColor
public
mixed
$textColor
$title
public
mixed
$title
$tMargin
public
mixed
$tMargin
$underline
public
mixed
$underline
$w
public
mixed
$w
$wPt
public
mixed
$wPt
$ws
public
mixed
$ws
$x
public
mixed
$x
$y
public
mixed
$y
$zoomMode
public
mixed
$zoomMode
$abcSet
private
mixed
$abcSet
= ""
$angle
private
mixed
$angle
= 0
$aSet
private
mixed
$aSet
= ""
$bSet
private
mixed
$bSet
= ""
$cSet
private
mixed
$cSet
= ""
$jStart
private
mixed
$jStart
= ["A" => 103, "B" => 104, "C" => 105]
$jSwap
private
mixed
$jSwap
= ["A" => 101, "B" => 100, "C" => 99]
$setFrom
private
mixed
$setFrom
= ["A" => 0, "B" => 0, "C" => 0]
$setTo
private
mixed
$setTo
= ["A" => 0, "B" => 0, "C" => 0]
$t128
private
mixed
$t128
Methods
__construct()
public
__construct([mixed $orientation = 'P' ][, mixed $unit = 'mm' ][, mixed $format = 'A4' ]) : mixed
Parameters
- $orientation : mixed = 'P'
- $unit : mixed = 'mm'
- $format : mixed = 'A4'
acceptPageBreak()
public
acceptPageBreak() : mixed
addFont()
public
addFont(mixed $family[, mixed $style = '' ][, mixed $file = '' ]) : mixed
Parameters
- $family : mixed
- $style : mixed = ''
- $file : mixed = ''
addlink()
public
addlink() : mixed
addPage()
public
addPage([mixed $orientation = '' ][, mixed $format = '' ]) : mixed
Parameters
- $orientation : mixed = ''
- $format : mixed = ''
aliasNbPages()
public
aliasNbPages([mixed $alias = '{nb}' ]) : mixed
Parameters
- $alias : mixed = '{nb}'
cell()
public
cell(mixed $w[, mixed $h = 0 ][, mixed $txt = '' ][, mixed $border = 0 ][, mixed $ln = 0 ][, mixed $align = '' ][, mixed $fill = false ][, mixed $link = '' ]) : mixed
Parameters
- $w : mixed
- $h : mixed = 0
- $txt : mixed = ''
- $border : mixed = 0
- $ln : mixed = 0
- $align : mixed = ''
- $fill : mixed = false
- $link : mixed = ''
cellFit()
Celula com escala horizontal caso o texto seja muito largo
public
cellFit(number $w[, number $h = 0 ][, string $txt = '' ][, number $border = 0 ][, number $ln = 0 ][, string $align = '' ][, bool $fill = false ][, string $link = '' ][, bool $scale = false ][, bool $force = true ]) : mixed
Parameters
- $w : number
- $h : number = 0
- $txt : string = ''
- $border : number = 0
- $ln : number = 0
- $align : string = ''
- $fill : bool = false
- $link : string = ''
- $scale : bool = false
- $force : bool = true
cellFitScale()
Celula com escalamento horizontal somente se necessário
public
cellFitScale(number $w[, number $h = 0 ][, string $txt = '' ][, number $border = 0 ][, number $ln = 0 ][, string $align = '' ][, bool $fill = false ][, string $link = '' ]) : mixed
Parameters
- $w : number
- $h : number = 0
- $txt : string = ''
- $border : number = 0
- $ln : number = 0
- $align : string = ''
- $fill : bool = false
- $link : string = ''
cellFitScaleForce()
Celula com escalamento forçado
public
cellFitScaleForce(number $w[, number $h = 0 ][, string $txt = '' ][, number $border = 0 ][, number $ln = 0 ][, string $align = '' ][, bool $fill = false ][, string $link = '' ]) : mixed
Parameters
- $w : number
- $h : number = 0
- $txt : string = ''
- $border : number = 0
- $ln : number = 0
- $align : string = ''
- $fill : bool = false
- $link : string = ''
cellFitSpace()
Celula com espaçamento de caracteres somente se necessário
public
cellFitSpace(number $w[, number $h = 0 ][, string $txt = '' ][, number $border = 0 ][, number $ln = 0 ][, string $align = '' ][, bool $fill = false ][, string $link = '' ]) : mixed
Parameters
- $w : number
- $h : number = 0
- $txt : string = ''
- $border : number = 0
- $ln : number = 0
- $align : string = ''
- $fill : bool = false
- $link : string = ''
cellFitSpaceForce()
Celula com espaçamento de caracteres forçado
public
cellFitSpaceForce(number $w[, number $h = 0 ][, string $txt = '' ][, number $border = 0 ][, number $ln = 0 ][, string $align = '' ][, bool $fill = false ][, string $link = '' ]) : mixed
Parameters
- $w : number
- $h : number = 0
- $txt : string = ''
- $border : number = 0
- $ln : number = 0
- $align : string = ''
- $fill : bool = false
- $link : string = ''
close()
public
close() : mixed
code128()
Imprime barcode 128
public
code128(mixed $x, mixed $y, mixed $code, mixed $w, mixed $h) : mixed
Parameters
- $x : mixed
- $y : mixed
- $code : mixed
- $w : mixed
- $h : mixed
dashedHLine()
Desenha uma linha horizontal tracejada com o FPDF
public
dashedHLine(number $x, number $y, number $w, number $h, number $n) : none
Parameters
- $x : number
-
Posição horizontal inicial, em mm
- $y : number
-
Posição vertical inicial, em mm
- $w : number
-
Comprimento da linha, em mm
- $h : number
-
Espessura da linha, em mm
- $n : number
-
Numero de traços na seção da linha com o comprimento $w
Return values
nonedashedRect()
Desenha um retangulo com linhas tracejadas
public
dashedRect(number $x1, number $y1, number $x2, number $y2[, number $width = 1 ][, number $nb = 15 ]) : mixed
Parameters
- $x1 : number
- $y1 : number
- $x2 : number
- $y2 : number
- $width : number = 1
- $nb : number = 15
dashedVLine()
Desenha uma linha vertical tracejada com o FPDF
public
dashedVLine(number $x, number $y, number $w, number $yfinal, number $n) : none
Parameters
- $x : number
-
Posição horizontal inicial, em mm
- $y : number
-
Posição vertical inicial, em mm
- $w : number
-
Espessura da linha, em mm
- $yfinal : number
-
posição final
- $n : number
-
Numero de traços na seção da linha com o comprimento $w
Return values
nonedrawTextBox()
Monta uma caixa de texto
public
drawTextBox(string $strText, number $w, number $h[, string $align = 'L' ][, string $valign = 'T' ][, bool $border = true ]) : mixed
Parameters
- $strText : string
- $w : number
- $h : number
- $align : string = 'L'
- $valign : string = 'T'
- $border : bool = true
error()
public
error(mixed $msg) : mixed
Parameters
- $msg : mixed
footer()
public
footer() : mixed
getNumLines()
pGetNumLines Obtem o numero de linhas usadas pelo texto usando a fonte especifidada
public
getNumLines(string $text, number $width[, array<string|int, mixed> $aFont = ['font' => 'Times', 'size' => 8, 'style' => ''] ]) : number
Parameters
- $text : string
- $width : number
- $aFont : array<string|int, mixed> = ['font' => 'Times', 'size' => 8, 'style' => '']
Return values
number —numero de linhas
getPdf()
public
getPdf() : mixed
getStringWidth()
public
getStringWidth(mixed $s) : mixed
Parameters
- $s : mixed
getX()
public
getX() : mixed
getY()
public
getY() : mixed
header()
public
header() : mixed
image()
public
image(mixed $file[, mixed $x = null ][, mixed $y = null ][, mixed $w = 0 ][, mixed $h = 0 ][, mixed $type = '' ][, mixed $link = '' ]) : mixed
Parameters
- $file : mixed
- $x : mixed = null
- $y : mixed = null
- $w : mixed = 0
- $h : mixed = 0
- $type : mixed = ''
- $link : mixed = ''
line()
public
line(mixed $x1, mixed $y1, mixed $x2, mixed $y2) : mixed
Parameters
- $x1 : mixed
- $y1 : mixed
- $x2 : mixed
- $y2 : mixed
link()
public
link(mixed $x, mixed $y, mixed $w, mixed $h, mixed $link) : mixed
Parameters
- $x : mixed
- $y : mixed
- $w : mixed
- $h : mixed
- $link : mixed
ln()
public
ln([mixed $h = null ]) : mixed
Parameters
- $h : mixed = null
multicell()
public
multicell(mixed $w, mixed $h, mixed $txt[, mixed $border = 0 ][, mixed $align = 'J' ][, mixed $fill = false ]) : mixed
Parameters
- $w : mixed
- $h : mixed
- $txt : mixed
- $border : mixed = 0
- $align : mixed = 'J'
- $fill : mixed = false
open()
public
open() : mixed
output()
public
output([mixed $name = '' ][, mixed $dest = '' ]) : mixed
Parameters
- $name : mixed = ''
- $dest : mixed = ''
pageNo()
public
pageNo() : mixed
rect()
public
rect(mixed $x, mixed $y, mixed $w, mixed $h[, mixed $style = '' ]) : mixed
Parameters
- $x : mixed
- $y : mixed
- $w : mixed
- $h : mixed
- $style : mixed = ''
rotate()
Rotaciona para impressão paisagem (landscape)
public
rotate(number $angle[, number $x = -1 ][, number $y = -1 ]) : mixed
Parameters
- $angle : number
- $x : number = -1
- $y : number = -1
roundedRect()
Desenha um retangulo com cantos arredondados
public
roundedRect(number $x, number $y, number $w, number $h, number $r[, string $corners = '1234' ][, string $style = '' ]) : mixed
Parameters
- $x : number
- $y : number
- $w : number
- $h : number
- $r : number
- $corners : string = '1234'
- $style : string = ''
setAuthor()
public
setAuthor(mixed $author[, mixed $isUTF8 = false ]) : mixed
Parameters
- $author : mixed
- $isUTF8 : mixed = false
setAutoPageBreak()
public
setAutoPageBreak(mixed $auto[, mixed $margin = 0 ]) : mixed
Parameters
- $auto : mixed
- $margin : mixed = 0
setCompression()
public
setCompression(mixed $compress) : mixed
Parameters
- $compress : mixed
setCreator()
public
setCreator(mixed $creator[, mixed $isUTF8 = false ]) : mixed
Parameters
- $creator : mixed
- $isUTF8 : mixed = false
setDisplayMode()
public
setDisplayMode(mixed $zoom[, mixed $layout = 'continuous' ]) : mixed
Parameters
- $zoom : mixed
- $layout : mixed = 'continuous'
setDrawColor()
public
setDrawColor(mixed $r[, mixed $g = null ][, mixed $b = null ]) : mixed
Parameters
- $r : mixed
- $g : mixed = null
- $b : mixed = null
setFillColor()
public
setFillColor(mixed $r[, mixed $g = null ][, mixed $b = null ]) : mixed
Parameters
- $r : mixed
- $g : mixed = null
- $b : mixed = null
setFont()
public
setFont(mixed $family[, mixed $style = '' ][, mixed $size = 0 ]) : mixed
Parameters
- $family : mixed
- $style : mixed = ''
- $size : mixed = 0
setFontSize()
public
setFontSize(mixed $size) : mixed
Parameters
- $size : mixed
setKeywords()
public
setKeywords(mixed $keywords[, mixed $isUTF8 = false ]) : mixed
Parameters
- $keywords : mixed
- $isUTF8 : mixed = false
setLeftMargin()
public
setLeftMargin(mixed $margin) : mixed
Parameters
- $margin : mixed
setLineWidth()
public
setLineWidth(mixed $width) : mixed
Parameters
- $width : mixed
setlink()
public
setlink(mixed $link[, mixed $y = 0 ][, mixed $page = -1 ]) : mixed
Parameters
- $link : mixed
- $y : mixed = 0
- $page : mixed = -1
setMargins()
public
setMargins(mixed $left, mixed $top[, mixed $right = null ]) : mixed
Parameters
- $left : mixed
- $top : mixed
- $right : mixed = null
setRightMargin()
public
setRightMargin(mixed $margin) : mixed
Parameters
- $margin : mixed
setSubject()
public
setSubject(mixed $subject[, mixed $isUTF8 = false ]) : mixed
Parameters
- $subject : mixed
- $isUTF8 : mixed = false
settextColor()
public
settextColor(mixed $r[, mixed $g = null ][, mixed $b = null ]) : mixed
Parameters
- $r : mixed
- $g : mixed = null
- $b : mixed = null
setTitle()
public
setTitle(mixed $title[, mixed $isUTF8 = false ]) : mixed
Parameters
- $title : mixed
- $isUTF8 : mixed = false
setTopMargin()
public
setTopMargin(mixed $margin) : mixed
Parameters
- $margin : mixed
setX()
public
setX(mixed $x) : mixed
Parameters
- $x : mixed
setXY()
public
setXY(mixed $x, mixed $y) : mixed
Parameters
- $x : mixed
- $y : mixed
setY()
public
setY(mixed $y) : mixed
Parameters
- $y : mixed
text()
public
text(mixed $x, mixed $y, mixed $txt) : mixed
Parameters
- $x : mixed
- $y : mixed
- $txt : mixed
textBox()
pTextBox Cria uma caixa de texto com ou sem bordas. Esta função perimite o alinhamento horizontal ou vertical do texto dentro da caixa.
public
textBox(number $x, number $y, number $w, number $h[, string $text = '' ][, array<string|int, mixed> $aFont = array('font' => 'Times', 'size' => 8, 'style' => '') ][, string $vAlign = 'T' ][, string $hAlign = 'L' ][, bool $border = true ][, string $link = '' ][, bool $force = true ][, number $hmax = 0 ][, number $vOffSet = 0 ][, bool $fill = false ]) : number
Atenção : Esta função é dependente de outras classes de FPDF Ex. $this->pTextBox(2,20,34,8,'Texto',array('fonte'=>$this->fontePadrao, 'size'=>10,'style='B'),'C','L',FALSE,'http://www.nfephp.org')
Parameters
- $x : number
-
Posição horizontal da caixa, canto esquerdo superior
- $y : number
-
Posição vertical da caixa, canto esquerdo superior
- $w : number
-
Largura da caixa
- $h : number
-
Altura da caixa
- $text : string = ''
-
Conteúdo da caixa
- $aFont : array<string|int, mixed> = array('font' => 'Times', 'size' => 8, 'style' => '')
-
Matriz com as informações para formatação do texto com fonte, tamanho e estilo
- $vAlign : string = 'T'
-
Alinhamento vertical do texto, T-topo C-centro B-base
- $hAlign : string = 'L'
-
Alinhamento horizontal do texto, L-esquerda, C-centro, R-direita
- $border : bool = true
-
TRUE ou 1 desenha a borda, FALSE ou 0 Sem borda
- $link : string = ''
-
Insere um hiperlink
- $force : bool = true
-
Se for true força a caixa com uma unica linha e para isso atera o tamanho do fonte até caber no espaço, se falso mantem o tamanho do fonte e usa quantas linhas forem necessárias e para isso atera o tamanho do fonte até caber no espaço, se falso mantem o tamanho do fonte e usa quantas linhas forem necessárias
- $hmax : number = 0
- $vOffSet : number = 0
-
incremento forçado na na posição Y
- $fill : bool = false
-
Cria um quadrado e preenche o mesmo com a cor determinada no PDF. Se ativo junto com $border colore o quadrado criado pelo memso.
Return values
number —$height Qual a altura necessária para desenhar esta textBox
textBox90()
Cria uma caixa de texto com ou sem bordas. Esta função permite o alinhamento horizontal ou vertical do texto dentro da caixa, rotacionando-o em 90 graus, essa função precisa que a classe PDF contenha a função Rotate($angle,$x,$y); Atenção : Esta função é dependente de outras classes de FPDF Ex. $this->__textBox90(2,20,34,8,'Texto',array('fonte'=>$this->fontePadrao, 'size'=>10,'style='B'),'C','L',FALSE,'http://www.nfephp.org')
public
textBox90(number $x, number $y, number $w, number $h[, string $text = '' ][, array<string|int, mixed> $aFont = array('font' => 'Times', 'size' => 8, 'style' => '') ][, string $vAlign = 'T' ][, string $hAlign = 'L' ][, bool $border = 1 ][, string $link = '' ][, bool $force = true ][, number $hmax = 0 ][, number $vOffSet = 0 ]) : number
Parameters
- $x : number
-
Posição horizontal da caixa, canto esquerdo superior
- $y : number
-
Posição vertical da caixa, canto esquerdo superior
- $w : number
-
Largura da caixa
- $h : number
-
Altura da caixa
- $text : string = ''
-
Conteúdo da caixa
- $aFont : array<string|int, mixed> = array('font' => 'Times', 'size' => 8, 'style' => '')
-
Matriz com as informações para formatação do texto com fonte, tamanho e estilo
- $vAlign : string = 'T'
-
Alinhamento vertical do texto, T-topo C-centro B-base
- $hAlign : string = 'L'
-
Alinhamento horizontal do texto, L-esquerda, C-centro, R-direita
- $border : bool = 1
-
TRUE ou 1 desenha a borda, FALSE ou 0 Sem borda
- $link : string = ''
-
Insere um hiperlink
- $force : bool = true
-
Se for true força a caixa com uma unica linha e para isso atera o tamanho do fonte até caber no espaço, se falso mantem o tamanho do fonte e usa quantas linhas forem necessárias linha e para isso atera o tamanho do fonte até caber no espaço, se falso mantem o tamanho do fonte e usa quantas linhas forem necessárias
- $hmax : number = 0
- $vOffSet : number = 0
-
incremento forçado na na posição Y
Return values
number —$height Qual a altura necessária para desenhar esta textBox
wordWrap()
Quebra o texto para caber na caixa
public
wordWrap(type &$text, type $maxwidth) : int
Parameters
- $text : type
- $maxwidth : type
Return values
intwrite()
public
write(mixed $h, mixed $txt[, mixed $link = '' ]) : mixed
Parameters
- $h : mixed
- $txt : mixed
- $link : mixed = ''
beginPage()
protected
beginPage(mixed $orientation, mixed $format) : mixed
Parameters
- $orientation : mixed
- $format : mixed
dochecks()
protected
dochecks() : mixed
doUnderLine()
protected
doUnderLine(mixed $x, mixed $y, mixed $txt) : mixed
Parameters
- $x : mixed
- $y : mixed
- $txt : mixed
endDoc()
protected
endDoc() : mixed
endPage()
protected
endPage() : mixed
escape()
protected
escape(mixed $s) : mixed
Parameters
- $s : mixed
getFontPath()
protected
getFontPath() : mixed
getpageformat()
protected
getpageformat(mixed $format) : mixed
Parameters
- $format : mixed
newObj()
protected
newObj() : mixed
out()
protected
out(mixed $s) : mixed
Parameters
- $s : mixed
parseGIF()
protected
parseGIF(mixed $file) : mixed
Parameters
- $file : mixed
parseJPG()
protected
parseJPG(mixed $file) : mixed
Parameters
- $file : mixed
parsePNG()
protected
parsePNG(mixed $file) : mixed
Parameters
- $file : mixed
putCatalog()
protected
putCatalog() : mixed
putFonts()
protected
putFonts() : mixed
putHeader()
protected
putHeader() : mixed
putImages()
protected
putImages() : mixed
putInfo()
protected
putInfo() : mixed
putPages()
protected
putPages() : mixed
putResourceDict()
protected
putResourceDict() : mixed
putResources()
protected
putResources() : mixed
putStream()
protected
putStream(mixed $s) : mixed
Parameters
- $s : mixed
putTrailer()
protected
putTrailer() : mixed
putXobjectDict()
protected
putXobjectDict() : mixed
readint()
protected
readint(mixed $f) : mixed
Parameters
- $f : mixed
readstream()
protected
readstream(mixed $f, mixed $n) : mixed
Parameters
- $f : mixed
- $n : mixed
textString()
protected
textString(mixed $s) : mixed
Parameters
- $s : mixed
utf8Toutf16()
protected
utf8Toutf16(mixed $s) : mixed
Parameters
- $s : mixed
arc()
Desenha o arco para arredondar o canto do retangulo
private
arc(number $x1, number $y1, number $x2, number $y2, number $x3, number $y3) : mixed
Parameters
- $x1 : number
- $y1 : number
- $x2 : number
- $y2 : number
- $x3 : number
- $y3 : number
convertToIso()
Converte os caracteres para ISO-88591.
private
convertToIso(string $text) : string
Parameters
- $text : string
Return values
stringdrawRows()
Insere linhas de texto na caixa
private
drawRows(number $w, number $h, string $txt[, string $border = 0 ][, string $align = 'J' ][, bool $fill = false ][, number $maxline = 0 ][, number $prn = 0 ]) : int
Parameters
- $w : number
- $h : number
- $txt : string
- $border : string = 0
- $align : string = 'J'
- $fill : bool = false
- $maxline : number = 0
- $prn : number = 0
Return values
intmbGetStringLength()
Patch para trabalhar com textos de duplo byte CJK
private
mbGetStringLength(string $s) : int
Parameters
- $s : string