Pdf
in package
Primary class for generating PDF files.
Table of Contents
- getDriverLabel() : string
- Get driver label.
- getInstanceByTemplateId() : Base
- Get PDF instance by template id.
- getPageFormats() : array<string|int, string>
- Get page formats.
- getSupportedDrivers() : array<string|int, string>
- Get supported drivers for generating PDF.
- merge() : void
- Function that merges PDF files into one.
Methods
getDriverLabel()
Get driver label.
public
static getDriverLabel(string $name) : string
Parameters
- $name : string
Return values
string —getInstanceByTemplateId()
Get PDF instance by template id.
public
static getInstanceByTemplateId(int $templateId) : Base
Parameters
- $templateId : int
Return values
Base —getPageFormats()
Get page formats.
public
static getPageFormats() : array<string|int, string>
Return values
array<string|int, string> —getSupportedDrivers()
Get supported drivers for generating PDF.
public
static getSupportedDrivers() : array<string|int, string>
Return values
array<string|int, string> —merge()
Function that merges PDF files into one.
public
static merge(array<string|int, string> $files, string $path, string $pdfFlag) : void
Parameters
- $files : array<string|int, string>
-
List of files to merge
- $path : string
-
File name or path to write
- $pdfFlag : string
-
Merge mode e.g.
I
= show in browser ,D
= download ,F
= save to file