PHP Класс Barryvdh\DomPDF\PDF

Автор: Barry vd. Heuvel
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$config Illuminate\Contracts\Config\Repository
$dompdf Dompdf\Dompdf
$files Illuminate\Filesystem\Filesystem
$orientation
$paper
$public_path
$rendered
$showWarnings
$view Illuminate\Contracts\View\Factory

Открытые методы

Метод Описание
__construct ( Dompdf\Dompdf $dompdf, Illuminate\Contracts\Config\Repository $config, Illuminate\Filesystem\Filesystem $files, Illuminate\Contracts\View\Factory $view )
download ( string $filename = 'document.pdf' ) : Illuminate\Http\Response Make the PDF downloadable by the user
getDomPDF ( ) : Dompdf\Dompdf Get the DomPDF instance
loadFile ( string $file ) : static Load a HTML file
loadHTML ( string $string, string $encoding = null ) : static Load a HTML string
loadView ( string $view, array $data = [], array $mergeData = [], string $encoding = null ) : static Load a View and convert to HTML
output ( ) : string Output the PDF as a string.
save ( $filename ) : static Save the PDF to a file
setOptions ( array $options ) : static Set/Change an option in DomPdf
setPaper ( string $paper, string $orientation = 'portrait' ) Set the paper size (default A4)
setWarnings ( boolean $warnings ) Show or hide warnings
stream ( string $filename = 'document.pdf' ) : Illuminate\Http\Response Return a response with the PDF to show in the browser

Защищенные методы

Метод Описание
convertEntities ( $subject )
render ( ) Render the PDF

Описание методов

__construct() публичный Метод

public __construct ( Dompdf\Dompdf $dompdf, Illuminate\Contracts\Config\Repository $config, Illuminate\Filesystem\Filesystem $files, Illuminate\Contracts\View\Factory $view )
$dompdf Dompdf\Dompdf
$config Illuminate\Contracts\Config\Repository
$files Illuminate\Filesystem\Filesystem
$view Illuminate\Contracts\View\Factory

convertEntities() защищенный Метод

protected convertEntities ( $subject )

download() публичный Метод

Make the PDF downloadable by the user
public download ( string $filename = 'document.pdf' ) : Illuminate\Http\Response
$filename string
Результат Illuminate\Http\Response

getDomPDF() публичный Метод

Get the DomPDF instance
public getDomPDF ( ) : Dompdf\Dompdf
Результат Dompdf\Dompdf

loadFile() публичный Метод

Load a HTML file
public loadFile ( string $file ) : static
$file string
Результат static

loadHTML() публичный Метод

Load a HTML string
public loadHTML ( string $string, string $encoding = null ) : static
$string string
$encoding string Not used yet
Результат static

loadView() публичный Метод

Load a View and convert to HTML
public loadView ( string $view, array $data = [], array $mergeData = [], string $encoding = null ) : static
$view string
$data array
$mergeData array
$encoding string Not used yet
Результат static

output() публичный Метод

Output the PDF as a string.
public output ( ) : string
Результат string The rendered PDF as string

render() защищенный Метод

Render the PDF
protected render ( )

save() публичный Метод

Save the PDF to a file
public save ( $filename ) : static
$filename
Результат static

setOptions() публичный Метод

Set/Change an option in DomPdf
public setOptions ( array $options ) : static
$options array
Результат static

setPaper() публичный Метод

Set the paper size (default A4)
public setPaper ( string $paper, string $orientation = 'portrait' )
$paper string
$orientation string

setWarnings() публичный Метод

Show or hide warnings
public setWarnings ( boolean $warnings )
$warnings boolean

stream() публичный Метод

Return a response with the PDF to show in the browser
public stream ( string $filename = 'document.pdf' ) : Illuminate\Http\Response
$filename string
Результат Illuminate\Http\Response

Описание свойств

$config защищенное свойство

protected Repository,Illuminate\Contracts\Config $config
Результат Illuminate\Contracts\Config\Repository

$dompdf защищенное свойство

protected Dompdf,Dompdf $dompdf
Результат Dompdf\Dompdf

$files защищенное свойство

protected Filesystem,Illuminate\Filesystem $files
Результат Illuminate\Filesystem\Filesystem

$orientation защищенное свойство

protected $orientation

$paper защищенное свойство

protected $paper

$public_path защищенное свойство

protected $public_path

$rendered защищенное свойство

protected $rendered

$showWarnings защищенное свойство

protected $showWarnings

$view защищенное свойство

protected Factory,Illuminate\Contracts\View $view
Результат Illuminate\Contracts\View\Factory