PHP Class Pressbooks\Modules\Export\Prince\Pdf

Inheritance: extends Pressbooks\Modules\Export\Export
Show file Open project: pressbooks/pressbooks Class Usage Examples

Public Properties

Property Type Description
$logfile string Fullpath to log file used by Prince.
$url string Service URL

Protected Properties

Property Type Description
$cssOverrides string CSS overrides
$exportScriptPath string Fullpath to book JavaScript file.
$exportStylePath string Fullpath to book CSS file.

Public Methods

Method Description
__construct ( array $args )
convert ( ) : boolean Create $this->outputPath
hasDependencies ( ) : boolean Dependency check.
logError ( $message, array $more_info = [] ) Add $this->url as additional log info, fallback to parent.
validate ( ) : boolean Check the sanity of $this->outputPath

Protected Methods

Method Description
getPdfOutputIntent ( )
getPdfProfile ( )
isPdf ( string $file ) : boolean Verify if body is actual PDF
kneadCss ( ) : string Return kneaded CSS string
themeOptionsOverrides ( ) Override based on Theme Options

Method Details

__construct() public method

public __construct ( array $args )
$args array

convert() public method

Create $this->outputPath
public convert ( ) : boolean
return boolean

getPdfOutputIntent() protected method

protected getPdfOutputIntent ( )

getPdfProfile() protected method

protected getPdfProfile ( )

hasDependencies() static public method

Dependency check.
static public hasDependencies ( ) : boolean
return boolean

isPdf() protected method

Verify if body is actual PDF
protected isPdf ( string $file ) : boolean
$file string
return boolean

kneadCss() protected method

Return kneaded CSS string
protected kneadCss ( ) : string
return string

logError() public method

Add $this->url as additional log info, fallback to parent.
public logError ( $message, array $more_info = [] )
$message
$more_info array (unused, overridden)

themeOptionsOverrides() protected method

Override based on Theme Options
protected themeOptionsOverrides ( )

validate() public method

Check the sanity of $this->outputPath
public validate ( ) : boolean
return boolean

Property Details

$cssOverrides protected property

CSS overrides
protected string $cssOverrides
return string

$exportScriptPath protected property

Fullpath to book JavaScript file.
protected string $exportScriptPath
return string

$exportStylePath protected property

Fullpath to book CSS file.
protected string $exportStylePath
return string

$logfile public property

Fullpath to log file used by Prince.
public string $logfile
return string

$url public property

Service URL
public string $url
return string