Documentation

PdfDocument extends mPDF
in package

PDF class Generate PDF for pdfview

Tags
copyright

Cloudrexx AG

author

Cloudrexx Development Team info@cloudrexx.com

subpackage

coremodule_pdf

version
1.0.0

Table of Contents

Properties

$content  : string
$destination  : string
$filePath  : string

Methods

__construct()  : mixed
Constructor
_getImage()  : mixed
Create()  : mixed
Create PDF
GetFullPath()  : mixed
Get file full path
setContent()  : mixed
Set the content
setDestination()  : mixed
Set the output destination
setDisposition()  : mixed
Set the Content-Disposition of the response.
setFilePath()  : mixed
Set the file path to store the PDF document

Properties

Methods

__construct()

Constructor

public __construct([mixed $orientation = 'P' ][, mixed $format = 'A4' ]) : mixed
Parameters
$orientation : mixed = 'P'
$format : mixed = 'A4'

_getImage()

public _getImage(mixed &$file[, mixed $firsttime = true ][, mixed $allowvector = true ][, mixed $orig_srcpath = false ][, mixed $interpolation = false ]) : mixed
Parameters
$file : mixed
$firsttime : mixed = true
$allowvector : mixed = true
$orig_srcpath : mixed = false
$interpolation : mixed = false
Tags
inheritDoc

GetFullPath()

Get file full path

public GetFullPath(string &$path[, string $basepath = '' ][, mixed $tagname = '' ]) : mixed
Parameters
$path : string

file path

$basepath : string = ''

file base path

$tagname : mixed = ''

setContent()

Set the content

public setContent(string $content) : mixed
Parameters
$content : string

setDestination()

Set the output destination

public setDestination(string $destination) : mixed
Parameters
$destination : string

setDisposition()

Set the Content-Disposition of the response.

public setDisposition(mixed $disposition) : mixed

Can be one of either 'inline' or 'attachment'.

For more output options do use $this->setDestination().

Parameters
$disposition : mixed

setFilePath()

Set the file path to store the PDF document

public setFilePath(string $filePath) : mixed
Parameters
$filePath : string

        
On this page

Search results