Grasenhiller\WkHtmlToX\WkPdf
Synopsis
class WkPdf
extends WkFile
{
- // members
- private $pdf;
- // methods
- public void __construct()
- public Pdf getPdf()
- public void setPdf()
- public void setOptions()
- public static DBHTMLText get_html()
- public void add()
- public void preview()
- public void download()
- public mixed save()
- public bool|string getAsString()
- // Inherited methods from WkFile
- public void __construct()
- public void autoSetProxy()
- public void autoSetBinary()
- public void autoSetBasicAuth()
- protected string generateValidFileName()
- protected mixed createFile()
- public void setFolder()
- public mixed getFolder()
- public string getServerPath()
- public static DBHTMLText get_html()
- public static mixed replace_img_paths()
- public array getOptions()
- public void setOptions()
- public mixed getOption()
- public void setOption()
- public void removeOption()
- public void removeOptions()
- protected void handleError()
- public void handleMissingYmlConfig()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
290 | if dev or test output with print_r, else log |
311 | if dev or test output with print_r, else log |
Members
private
protected
- $folder
- $options
Methods
public
- __construct() — WkPdf constructor.
- add() — Add a page to the pdf
- download() — Force the pdf to download
- getAsString() — Get the raw pdf as string
- getPdf()
- get_html()
- preview() — display the pdf inside the browser
- save() — Save it to the filesystem and return the file
- setOptions()
- setPdf()
Inherited from Grasenhiller\WkHtmlToX\WkFile
protected
- createFile()
- generateValidFileName()
- handleError() — Output the error
public
- autoSetBasicAuth() — Set the basic auth credentials if defined in the environment
- autoSetBinary() — Set the binary if defined in the environment
- autoSetProxy() — Set the proxy if defined in the environment and bypass proxy for own site
- getFolder()
- getOption()
- getOptions()
- getServerPath()
- get_html()
- handleMissingYmlConfig()
- removeOption()
- removeOptions()
- replace_img_paths() — Replace all relative image paths with absolute ones
- setFolder()
- setOption() — Overwrite an existing or set a new option
- setOptions() — Overwrite all options with the given ones