PHP Класс WKHtmlToPDF

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2013 This file is part of OpenEyes. OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Автор: OpenEyes ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$bottom_margin
$custom_tags
$left
$left_margin
$middle
$right
$right_margin
$top_margin

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

Свойство Тип Описание
$barcodes
$canvas_image_path
$docrefs
$documents
$patients
$wkhtmltopdf

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

Метод Описание
__construct ( )
deleteFile ( $path )
fileExists ( $path )
fileSize ( $path )
findOrCreateDirectory ( $path )
formatFooter ( $footer, $left, $middle, $right )
generatePDF ( $imageDirectory, $prefix, $suffix, $html, $output_html = false, $inject_autoprint_js = true )
getAssetManager ( )
getPDFOptions ( $path )
readFile ( $path )
remapAssetPaths ( $html )
remapCanvasImagePaths ( $html )
setBarcode ( $barcode_html )
setBarcodes ( $barcodes )
setCanvasImagePath ( $image_path )
setCustomTag ( $tag_name, $value )
setDocref ( $docref )
setDocrefs ( $docrefs )
setDocuments ( $count )
setLeft ( $left )
setMarginBottom ( $bottom_margin )
setMarginLeft ( $left_margin )
setMarginRight ( $right_margin )
setMarginTop ( $top_margin )
setMiddle ( $middle )
setPatient ( $patient )
setPatients ( $patients )
setRight ( $right )
writeFile ( $path, $data )

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

Метод Описание
execute ( $command )

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

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

public __construct ( )

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

public deleteFile ( $path )

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

protected execute ( $command )

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

public fileExists ( $path )

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

public fileSize ( $path )

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

public findOrCreateDirectory ( $path )

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

public formatFooter ( $footer, $left, $middle, $right )

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

public generatePDF ( $imageDirectory, $prefix, $suffix, $html, $output_html = false, $inject_autoprint_js = true )

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

public getAssetManager ( )

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

public getPDFOptions ( $path )

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

public readFile ( $path )

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

public remapAssetPaths ( $html )

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

public remapCanvasImagePaths ( $html )

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

public setBarcode ( $barcode_html )

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

public setBarcodes ( $barcodes )

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

public setCanvasImagePath ( $image_path )

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

public setCustomTag ( $tag_name, $value )

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

public setDocref ( $docref )

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

public setDocrefs ( $docrefs )

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

public setDocuments ( $count )

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

public setLeft ( $left )

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

public setMarginBottom ( $bottom_margin )

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

public setMarginLeft ( $left_margin )

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

public setMarginRight ( $right_margin )

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

public setMarginTop ( $top_margin )

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

public setMiddle ( $middle )

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

public setPatient ( $patient )

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

public setPatients ( $patients )

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

public setRight ( $right )

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

public writeFile ( $path, $data )

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

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

protected $barcodes

$bottom_margin публичное свойство

public $bottom_margin

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

protected $canvas_image_path

$custom_tags публичное свойство

public $custom_tags

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

protected $docrefs

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

protected $documents

$left публичное свойство

public $left

$left_margin публичное свойство

public $left_margin

$middle публичное свойство

public $middle

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

protected $patients

$right публичное свойство

public $right

$right_margin публичное свойство

public $right_margin

$top_margin публичное свойство

public $top_margin

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

protected $wkhtmltopdf