Quittio next API

RenderedDocument
in package

Read onlyYes
FinalYes

Rendered quote, delivery note, reminder or other document (PDF and HTML, never XML).

Table of Contents

Methods

__construct()  : mixed
contents()  : string
data()  : DocumentData
filename()  : string
hasPdf()  : bool
html()  : string
mimeType()  : string
pdf()  : string
save()  : string
Writes the output to a file, or into a directory (an existing one or a path ending in "/") with filename(); creates missing directories.

Methods

__construct()

public __construct(DocumentData $data, string $html, string $filenamePattern[, string|null $pdf = null ]) : mixed
Parameters
$data : DocumentData
$html : string
$filenamePattern : string
$pdf : string|null = null

filename()

public filename([string|null $extension = null ]) : string
Parameters
$extension : string|null = null
Return values
string

save()

Writes the output to a file, or into a directory (an existing one or a path ending in "/") with filename(); creates missing directories.

public save(string $path) : string
Parameters
$path : string
Return values
string —

the written path

On this page

Search results