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])
Exibir arquivo Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$bottom_margin
$custom_tags
$left
$left_margin
$middle
$right
$right_margin
$top_margin

Protected Properties

Property Type Description
$barcodes
$canvas_image_path
$docrefs
$documents
$patients
$wkhtmltopdf

Public Methods

Method 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 )

Protected Methods

Method Description
execute ( $command )

Method Details

__construct() public method

public __construct ( )

deleteFile() public method

public deleteFile ( $path )

execute() protected method

protected execute ( $command )

fileExists() public method

public fileExists ( $path )

fileSize() public method

public fileSize ( $path )

findOrCreateDirectory() public method

public findOrCreateDirectory ( $path )

formatFooter() public method

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

generatePDF() public method

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

getAssetManager() public method

public getAssetManager ( )

getPDFOptions() public method

public getPDFOptions ( $path )

readFile() public method

public readFile ( $path )

remapAssetPaths() public method

public remapAssetPaths ( $html )

remapCanvasImagePaths() public method

public remapCanvasImagePaths ( $html )

setBarcode() public method

public setBarcode ( $barcode_html )

setBarcodes() public method

public setBarcodes ( $barcodes )

setCanvasImagePath() public method

public setCanvasImagePath ( $image_path )

setCustomTag() public method

public setCustomTag ( $tag_name, $value )

setDocref() public method

public setDocref ( $docref )

setDocrefs() public method

public setDocrefs ( $docrefs )

setDocuments() public method

public setDocuments ( $count )

setLeft() public method

public setLeft ( $left )

setMarginBottom() public method

public setMarginBottom ( $bottom_margin )

setMarginLeft() public method

public setMarginLeft ( $left_margin )

setMarginRight() public method

public setMarginRight ( $right_margin )

setMarginTop() public method

public setMarginTop ( $top_margin )

setMiddle() public method

public setMiddle ( $middle )

setPatient() public method

public setPatient ( $patient )

setPatients() public method

public setPatients ( $patients )

setRight() public method

public setRight ( $right )

writeFile() public method

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