PdfDocument
extends mPDF
in package
PDF class Generate PDF for pdfview
Tags
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
$content
protected
string
$content
$destination
protected
string
$destination
= 'I'
$filePath
protected
string
$filePath
= ''
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
Create()
Create PDF
public
Create() : mixed
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