PHP Class 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 .
Author: OpenEyes ([email protected])
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Свойство Type Description
$bottom_margin
$custom_tags
$left
$left_margin
$middle
$right
$right_margin
$top_margin

Protected Properties

Свойство Type Description
$barcodes
$canvas_image_path
$docrefs
$documents
$patients
$wkhtmltopdf

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
execute ( $command )

Method Details

__construct() public méthode

public __construct ( )

deleteFile() public méthode

public deleteFile ( $path )

execute() protected méthode

protected execute ( $command )

fileExists() public méthode

public fileExists ( $path )

fileSize() public méthode

public fileSize ( $path )

findOrCreateDirectory() public méthode

public findOrCreateDirectory ( $path )

formatFooter() public méthode

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

generatePDF() public méthode

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

getAssetManager() public méthode

public getAssetManager ( )

getPDFOptions() public méthode

public getPDFOptions ( $path )

readFile() public méthode

public readFile ( $path )

remapAssetPaths() public méthode

public remapAssetPaths ( $html )

remapCanvasImagePaths() public méthode

public remapCanvasImagePaths ( $html )

setBarcode() public méthode

public setBarcode ( $barcode_html )

setBarcodes() public méthode

public setBarcodes ( $barcodes )

setCanvasImagePath() public méthode

public setCanvasImagePath ( $image_path )

setCustomTag() public méthode

public setCustomTag ( $tag_name, $value )

setDocref() public méthode

public setDocref ( $docref )

setDocrefs() public méthode

public setDocrefs ( $docrefs )

setDocuments() public méthode

public setDocuments ( $count )

setLeft() public méthode

public setLeft ( $left )

setMarginBottom() public méthode

public setMarginBottom ( $bottom_margin )

setMarginLeft() public méthode

public setMarginLeft ( $left_margin )

setMarginRight() public méthode

public setMarginRight ( $right_margin )

setMarginTop() public méthode

public setMarginTop ( $top_margin )

setMiddle() public méthode

public setMiddle ( $middle )

setPatient() public méthode

public setPatient ( $patient )

setPatients() public méthode

public setPatients ( $patients )

setRight() public méthode

public setRight ( $right )

writeFile() public méthode

public writeFile ( $path, $data )

Property Details

$barcodes protected_oe property

protected $barcodes

$bottom_margin public_oe property

public $bottom_margin

$canvas_image_path protected_oe property

protected $canvas_image_path

$custom_tags public_oe property

public $custom_tags

$docrefs protected_oe property

protected $docrefs

$documents protected_oe property

protected $documents

$left public_oe property

public $left

$left_margin public_oe property

public $left_margin

$middle public_oe property

public $middle

$patients protected_oe property

protected $patients

$right public_oe property

public $right

$right_margin public_oe property

public $right_margin

$top_margin public_oe property

public $top_margin

$wkhtmltopdf protected_oe property

protected $wkhtmltopdf