\DrawPDF

Clase para dibujar en un documento PDF.

Summary

Methods
Properties
Constants
DrawPDF()
drawCaja()
drawVLine()
drawHLine()
jump()
drawParagraph()
addText()
puntos_cm()
calculateY()
drawCheckbox()
jumpNextPage()
drawLine()
drawImage()
$_PDF_MARGEN_INFERIOR
$_PDF_MARGEN_SUPERIOR
$_HEIGHT_PAGE
$_WIDTH_PAGE
$_pageActual
$_pdf
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_PDF_MARGEN_INFERIOR

$_PDF_MARGEN_INFERIOR : 

Type

$_PDF_MARGEN_SUPERIOR

$_PDF_MARGEN_SUPERIOR : 

Type

$_HEIGHT_PAGE

$_HEIGHT_PAGE : 

Type

$_WIDTH_PAGE

$_WIDTH_PAGE : 

Type

$_pageActual

$_pageActual : 

Type

$_pdf

$_pdf : 

Type

Methods

DrawPDF()

DrawPDF(  $pdf,   $PDF_MARGEN_INFERIOR,   $PDF_MARGEN_SUPERIOR,   $width,   $height) 

Parameters

$pdf
$PDF_MARGEN_INFERIOR
$PDF_MARGEN_SUPERIOR
$width
$height

drawCaja()

drawCaja(  $px,   $py,   $width,   $height,   $color_background = null,   $color_line = null,   $style_line = -1) 

Parameters

$px
$py
$width
$height
$color_background
$color_line
$style_line

drawVLine()

drawVLine(  $px,   $py,   $height,   $color_line,   $style_line) 

Parameters

$px
$py
$height
$color_line
$style_line

drawHLine()

drawHLine(  $px,   $py,   $width,   $color_line,   $style_line) 

Parameters

$px
$py
$width
$color_line
$style_line

jump()

jump(  $py,   $jump,   $controlado = true) 

Hace un salto en el documento.

Parameters

$py
$jump
$controlado

drawParagraph()

drawParagraph(  $px,   $py,   $size_font,   $texto,   $align_label,   $font = "",   $color_font = '0,0,0') 

Agrega un texto que puede abarcar varias líneas y que incluye saltos de lineas y tabulaciones.

Parameters

$px
$py
$size_font
$texto
$align_label
$font
$color_font

addText()

addText(  $px,   $py,   $ancho_label,   $size_font,   $texto,   $align_label,   $font = "",   $color_font = '0,0,0',   $multiline = false,   $maxlineas = 2147483647) 

Agrega texto.

Parameters

$px

: Posición X

$py

: Posición Y

$ancho_label

: Ancho que debe tener la caja donde se dibuja el texto.

$size_font

: Tamaño de la Fuente

$texto

: Texto a mostrar

$align_label

: Alineación del texto dentro de la caja definida.

$font

: path donde se encuentra la Fuente a utilizar.

$color_font

: Color de la fuente expresada en valores RGB.

$multiline
$maxlineas

: Cantidad de lineas a emplear cuando el texto es multilinea.

puntos_cm()

puntos_cm(  $medida,   $resolucion = 72) 

Parameters

$medida
$resolucion

calculateY()

calculateY(  $py) 

Parameters

$py

drawCheckbox()

drawCheckbox(  $py,   $px,   $texto,   $ancho,   $margen,   $font_type = null,   $font_size = 12,   $align = 'left',   $check_color = null) 

Parameters

$py
$px
$texto
$ancho
$margen
$font_type
$font_size
$align
$check_color

jumpNextPage()

jumpNextPage() 

drawLine()

drawLine(  $px,   $py,   $length,   $orientation = 'H',   $typeline = null,   $color_line = null) 

Parameters

$px
$py
$length
$orientation
$typeline
$color_line

drawImage()

drawImage(  $file_path,   $file_type,   $px,   $py,   $width,   $height = null,   $validate_margen = true) 

Parameters

$file_path
$file_type
$px
$py
$width
$height
$validate_margen