Class PDF
Generates PDF document from a set of data.
-
TCPDF
-
CMS\Helpers\PDF
Methods summary
public
|
#
__construct( string $title, string $font = 'helvetica', boolean $logo = false )
Init method.
Parameters
- $title
- Title.
- $font
- Font name.
- $logo
- Logo.
|
public
array
|
#
loadData( string $file )
Loads data.
Parameters
- $file
- Absolute file path.
Returns
array
|
public
|
#
embedContentTable( array $header, array $data )
Sets main content for the document represented in a table view.
Sets main content for the document represented in a table view.
Parameters
- $header
- Table header.
- $data
- Table contents.
|
private
|
#
generateTableCaption( array $header )
Formats the table caption part.
Formats the table caption part.
Parameters
|
Properties summary
protected
string
|
$title
|
|
private
string
|
$font
Name of the font used in the document.
Name of the font used in the document.
|
|
private
boolean
|
$logo
Path to the image logo that will be embedded in the document.
Path to the image logo that will be embedded in the document.
|
|
private
integer
|
$tableCellWidth
Main table cell width in pixels.
Main table cell width in pixels.
|
|