TIC\DpdfBundle\Traits\DompdfWrapper
Wrapper sur l'interface publique de la classe utilitaire Dompdf.
(permet d'exposer les méthodes dans un service Symfony)
Synopsis
trait DompdfWrapper
{
- // members
- protected $dompdf;
- // methods
- public void construct()
- public void loadDOM()
- public void loadHtmlFile()
- public void loadHtml()
- public static void removeTextNodes()
- public void enableCaching()
- public bool parseDefaultView()
- public void render()
- public void addInfo()
- public void stream()
- public string|null output()
- public string outputHtml()
- public $this setPaper()
- public array getPaperSize()
- public string getPaperOrientation()
- public $this setTree()
- public FrameTree getTree()
- public $this setProtocol()
- public string getProtocol()
- public $this setBaseHost()
- public string getBaseHost()
- public $this setBasePath()
- public string getBasePath()
- public $this setDefaultView()
- public $this setHttpContext()
- public resource getHttpContext()
- public $this setCanvas()
- public Canvas getCanvas()
- public $this setCss()
- public Stylesheet getCss()
- public $this setDom()
- public DOMDocument getDom()
- public $this setOptions()
- public Options getOptions()
- public array getCallbacks()
- public DompdfWrapper setCallbacks()
- public boolean getQuirksmode()
- public $this setFontMetrics()
- public FontMetrics getFontMetrics()
Members
protected
- $dompdf
Methods
public
- addInfo() — Add meta information to the PDF after rendering.
- construct() — Class constructor
- enableCaching() — Enable experimental caching capability
- getBaseHost() — Returns the base hostname
- getBasePath() — Returns the base path
- getCallbacks() — Returns the callbacks array
- getCanvas() — Return the underlying Canvas instance (e.g. Dompdf\Adapter\CPDF, Dompdf\Adapter\GD)
- getCss() — Returns the stylesheet
- getDom()
- getFontMetrics()
- getHttpContext() — Returns the HTTP context
- getOptions()
- getPaperOrientation() — Gets the paper orientation
- getPaperSize() — Gets the paper size
- getProtocol() — Returns the protocol in use
- getQuirksmode() — Get the quirks mode
- getTree() — Returns the underlying {@link FrameTree} object
- loadDOM()
- loadHtml() — Loads an HTML string Parse errors are stored in the global array _dompdf_warnings.
- loadHtmlFile() — Loads an HTML file Parse errors are stored in the global array _dompdf_warnings.
- output() — Returns the PDF as a string.
- outputHtml() — Returns the underlying HTML document as a string
- parseDefaultView()
- removeTextNodes()
- render() — Renders the HTML to PDF
- setBaseHost() — Sets the base hostname
- setBasePath() — Sets the base path
- setCallbacks() — Define callbacks that allow modifying the document during render.
- setCanvas() — Set a custom `Canvas` instance to render the document to.
- setCss()
- setDefaultView() — Sets the default view
- setDom()
- setFontMetrics()
- setHttpContext() — Sets the HTTP context
- setOptions()
- setPaper() — Sets the paper size & orientation
- setProtocol() — Sets the protocol to use FIXME validate these
- setTree()
- stream() — Streams the PDF to the client.