PHP Class Pressbooks\Modules\Export\Prince\Pdf

Inheritance: extends Pressbooks\Modules\Export\Export
Afficher le fichier Open project: pressbooks/pressbooks Class Usage Examples

Méthodes publiques

Свойство Type Description
$logfile string Fullpath to log file used by Prince.
$url string Service URL

Protected Properties

Свойство Type Description
$cssOverrides string CSS overrides
$exportScriptPath string Fullpath to book JavaScript file.
$exportStylePath string Fullpath to book CSS file.

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public __construct ( array $args )
$args array

convert() public méthode

Create $this->outputPath
public convert ( ) : boolean
Résultat boolean

getPdfOutputIntent() protected méthode

protected getPdfOutputIntent ( )

getPdfProfile() protected méthode

protected getPdfProfile ( )

hasDependencies() static public méthode

Dependency check.
static public hasDependencies ( ) : boolean
Résultat boolean

isPdf() protected méthode

Verify if body is actual PDF
protected isPdf ( string $file ) : boolean
$file string
Résultat boolean

kneadCss() protected méthode

Return kneaded CSS string
protected kneadCss ( ) : string
Résultat string

logError() public méthode

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

themeOptionsOverrides() protected méthode

Override based on Theme Options
protected themeOptionsOverrides ( )

validate() public méthode

Check the sanity of $this->outputPath
public validate ( ) : boolean
Résultat boolean

Property Details

$cssOverrides protected_oe property

CSS overrides
protected string $cssOverrides
Résultat string

$exportScriptPath protected_oe property

Fullpath to book JavaScript file.
protected string $exportScriptPath
Résultat string

$exportStylePath protected_oe property

Fullpath to book CSS file.
protected string $exportStylePath
Résultat string

$logfile public_oe property

Fullpath to log file used by Prince.
public string $logfile
Résultat string

$url public_oe property

Service URL
public string $url
Résultat string