PDF creator object extending FDPF library.
More...
|
| __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) |
|
PDF creator object extending FDPF library.
Engine / Object Library
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Version
- 1.0.3.2
- Date
- Creation: May 2010
-
Modification: Sep 2022
- Copyright
- 2010 - 2022 CaMykS Team
- Note
- This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- Warning
- This library is not loaded with CaMykS initialisation. CPDF class.
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
◆ __construct()
CPDF::__construct |
( |
|
$orientation = null , |
|
|
|
$unit = null , |
|
|
|
$format = null |
|
) |
| |
Class constructor.
- Parameters
-
string | $orientation | |
string | $unit | |
mixed | $format | |
- Returns
- void
◆ CPDF()
CPDF::CPDF |
( |
|
$orientation = null , |
|
|
|
$unit = null , |
|
|
|
$format = null |
|
) |
| |
Old style constructor definition.
- Parameters
-
string | $orientation | |
string | $unit | |
mixed | $format | |
- Returns
- void
◆ MultiCell()
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
◆ set_htmlParams()
CPDF::set_htmlParams |
( |
|
$params = array() | ) |
|
Update html params.
- Parameters
-
- Returns
- void
◆ get_realWidth()
CPDF::get_realWidth |
( |
|
$w = 0 | ) |
|
Return real width.
- Parameters
-
- Returns
- float
◆ write_html()
CPDF::write_html |
( |
|
$html | ) |
|
Write html into PDF.
- Parameters
-
- Returns
- void
◆ decode_text()
CPDF::decode_text |
( |
|
$text | ) |
|
Decode text.
- Parameters
-
- Returns
- string
◆ decode_HTMLText()
CPDF::decode_HTMLText |
( |
|
$text = '' | ) |
|
Return entity decoded text.
- Parameters
-
- Returns
- string
◆ set_textColor()
CPDF::set_textColor |
( |
|
$color = '' | ) |
|
Set text color from any value.
- Parameters
-
- Returns
- string
◆ move_page()
CPDF::move_page |
( |
|
$page, |
|
|
|
$location |
|
) |
| |
Move current page to a new location.
- Parameters
-
integer | $page | |
integer | $location | |
- Returns
- void
◆ _write_htmlOpenTag()
CPDF::_write_htmlOpenTag |
( |
|
$tag, |
|
|
|
$attr |
|
) |
| |
|
private |
Open tag for html writing.
- Parameters
-
- Returns
- void
◆ _write_htmlCloseTag()
CPDF::_write_htmlCloseTag |
( |
|
$tag | ) |
|
|
private |
Close tag for html writing.
- Parameters
-
- Returns
- void
◆ _write_htmlSetStyle()
CPDF::_write_htmlSetStyle |
( |
|
$tag, |
|
|
|
$enable |
|
) |
| |
|
private |
Define current style for html writing.
- Parameters
-
string | $tag | |
integer | $enable | |
- Returns
- void
◆ _write_htmlAddLink()
CPDF::_write_htmlAddLink |
( |
|
$URL, |
|
|
|
$txt |
|
) |
| |
|
private |
Add link to text.
- Parameters
-
- Returns
- void
◆ _encode_entities()
CPDF::_encode_entities |
( |
|
$text | ) |
|
|
private |
Encode entities.
- Parameters
-
- Returns
- string
The documentation for this class was generated from the following file: