PHP Class Eduardokum\LaravelBoleto\Boleto\Render\AbstractPdf

Inheritance: extends fpdf\FPDF
Show file Open project: eduardokum/laravel-boleto Class Usage Examples

Protected Properties

Property Type Description
$CurrPageGroup variable containing the number of pages of the groups
$NewPageGroup PAGE GROUP
$PageGroups variable indicating whether a new group was requested
$angle
$javascript INCLUDE JS
$n_js

Public Methods

Method Description
GroupPageNo ( ) current page in the group
Output ( string $name = '', string $dest = 'I', boolean $print = false ) : string | void
PageGroupAlias ( ) alias of the current page group -- will be replaced by the total number of pages in this group
StartPageGroup ( ) create a new page group; call this before calling AddPage()
__construct ( $orientation = 'P', $unit = 'mm', $size = [210, 297] )
_beginpage ( $orientation, $size )
_putcatalog ( )
_putpages ( )
_putresources ( )
i25 ( $xpos, $ypos, $code, integer $basewidth = 1, integer $height = 10 ) BarCode

Protected Methods

Method Description
IncludeJS ( $script )
_ ( )
_putjavascript ( )
calculateDimensions ( $width, $height, $maxwidth, $maxheight ) : array
point2px ( $pt ) : float
rotate ( $angle, integer $x, integer $y )
textFitCell ( $w, $h, $txt, $border, $ln, $align, float $dec = 0.1 )

Method Details

GroupPageNo() public method

current page in the group
public GroupPageNo ( )

IncludeJS() protected method

protected IncludeJS ( $script )

Output() public method

public Output ( string $name = '', string $dest = 'I', boolean $print = false ) : string | void
$name string
$dest string I: send the file inline to the browser.
D: send to the browser and force download.
F: save to a local
S: return as a string. name is ignored.
$print boolean 1 imprime 0 nao imprime
return string | void

PageGroupAlias() public method

alias of the current page group -- will be replaced by the total number of pages in this group
public PageGroupAlias ( )

StartPageGroup() public method

create a new page group; call this before calling AddPage()
public StartPageGroup ( )

_() protected method

protected _ ( )

__construct() public method

public __construct ( $orientation = 'P', $unit = 'mm', $size = [210, 297] )

_beginpage() public method

public _beginpage ( $orientation, $size )

_putcatalog() public method

public _putcatalog ( )

_putjavascript() protected method

protected _putjavascript ( )

_putpages() public method

public _putpages ( )

_putresources() public method

public _putresources ( )

calculateDimensions() protected method

protected calculateDimensions ( $width, $height, $maxwidth, $maxheight ) : array
$width
$height
$maxwidth
$maxheight
return array

i25() public method

BarCode
public i25 ( $xpos, $ypos, $code, integer $basewidth = 1, integer $height = 10 )
$xpos
$ypos
$code
$basewidth integer
$height integer

point2px() protected method

protected point2px ( $pt ) : float
$pt
return float

rotate() protected method

protected rotate ( $angle, integer $x, integer $y )
$angle
$x integer
$y integer

textFitCell() protected method

protected textFitCell ( $w, $h, $txt, $border, $ln, $align, float $dec = 0.1 )
$w
$h
$txt
$border
$ln
$align
$dec float

Property Details

$CurrPageGroup protected property

variable containing the number of pages of the groups
protected $CurrPageGroup

$NewPageGroup protected property

PAGE GROUP
protected $NewPageGroup

$PageGroups protected property

variable indicating whether a new group was requested
protected $PageGroups

$angle protected property

protected $angle

$javascript protected property

INCLUDE JS
protected $javascript

$n_js protected property

protected $n_js