CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Public Member Functions | Private Member Functions | List of all members
CPDF Class Reference
Inheritance diagram for CPDF:
Inheritance graph
[legend]
Collaboration diagram for CPDF:
Collaboration graph
[legend]

Public Member Functions

 __construct ($orientation=null, $unit=null, $format=null)
 
 CPDF ($orientation=null, $unit=null, $format=null)
 
 MultiCell ($w, $h, $txt, $border=0, $align='J', $fill=false, $maxLines=0)
 
 set_htmlParams ($params=array())
 
 get_realWidth ($w=0)
 
 write_html ($html)
 
 decode_text ($text)
 
 decode_HTMLText ($text='')
 
 set_textColor ($color='')
 
 move_page ($page, $location)
 

Private Member Functions

 _write_htmlOpenTag ($tag, $attr)
 
 _write_htmlCloseTag ($tag)
 
 _write_htmlSetStyle ($tag, $enable)
 
 _write_htmlAddLink ($URL, $txt)
 
 _encode_entities ($text)
 

Detailed Description

CPDF class.

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Constructor & Destructor Documentation

CPDF::__construct (   $orientation = null,
  $unit = null,
  $format = null 
)

Class constructor.

Parameters
string$orientation
string$unit
mixed$format
Returns
void

Member Function Documentation

CPDF::_encode_entities (   $text)
private

Encode entities.

Parameters
string$text
Returns
string
CPDF::_write_htmlAddLink (   $URL,
  $txt 
)
private

Add link to text.

Parameters
string$URL
string$txt
Returns
void
CPDF::_write_htmlCloseTag (   $tag)
private

Close tag for html writing.

Parameters
string$tag
Returns
void
CPDF::_write_htmlOpenTag (   $tag,
  $attr 
)
private

Open tag for html writing.

Parameters
string$tag
array$attr
Returns
void
CPDF::_write_htmlSetStyle (   $tag,
  $enable 
)
private

Define current style for html writing.

Parameters
string$tag
integer$enable
Returns
void
CPDF::CPDF (   $orientation = null,
  $unit = null,
  $format = null 
)

Old style constructor definition.

Parameters
string$orientation
string$unit
mixed$format
Returns
void
CPDF::decode_HTMLText (   $text = '')

Return entity decoded text.

Parameters
string$text
Returns
string
CPDF::decode_text (   $text)

Decode text.

Parameters
string$text
Returns
string
CPDF::get_realWidth (   $w = 0)

Return real width.

Parameters
float$w
Returns
float
CPDF::move_page (   $page,
  $location 
)

Move current page to a new location.

Parameters
integer$page
integer$location
Returns
void
CPDF::MultiCell (   $w,
  $h,
  $txt,
  $border = 0,
  $align = 'J',
  $fill = false,
  $maxLines = 0 
)

Write multiple lines at once

Parameters
int$w
int$h
string$txt
mixed$border
string$align
boolean$fill
integer$maxLines
Returns
string
CPDF::set_htmlParams (   $params = array())

Update html params.

Parameters
array$params
Returns
void
CPDF::set_textColor (   $color = '')

Set text color from any value.

Parameters
mixed$color
Returns
string
CPDF::write_html (   $html)

Write html into PDF.

Parameters
HTML$html
Returns
void

The documentation for this class was generated from the following file: