Symbiote\PdfRendition\Service\PDFRenditionService
A class that handles the rendition of pages into PDFs.
@authors Marcus Nyeholt <marcus@silverstripe.com.au> and Nathan Glasl <nathan@silverstripe.com.au>
@license http://silverstripe.org/bsd-license/
Synopsis
class PDFRenditionService
{
- // members
- public static string $tidy_bin = "/usr/bin/tidy";
- public static string $java_bin = "/usr/bin/java";
- // methods
- public void __construct()
- public string render()
- protected void tidyHtml()
- protected void tidyHtmlExternal()
- protected void fixLinks()
- public void renderUrl()
- public string renderPage()
Members
public
- $java_bin
- $tidy_bin
Methods
protected
- fixLinks() — Fixes URLs in images, link and a tags to refer to correct things relevant to the base tag.
- tidyHtml()
- tidyHtmlExternal()
public
- __construct()
- render() — Renders passed in content to a PDF.
- renderPage()
- renderUrl() — Renders the contents of a silverstripe URL into a PDF