\SS_PDF
- Author: Benedikt Hofstaetter <info@csy.io>
Synopsis
class SS_PDF
{
- // members
- private $globalOptions;
- private $pdf;
- private $folder = ASSETS_PATH;
- private $folderID;
- // methods
- public void __construct()
- public void setGlobalOptions()
- public void setOption()
- public void removeOption()
- public void setFolderName()
- public static string getHtml()
- public void add()
- public DataObject save()
- protected DataObject createFile()
- public void preview()
- public void download()
Members
private
- $folder
- $folderID
- $globalOptions
Methods
protected
- createFile() — Creates an File DataObject from the pdf
public
- __construct()
- add() — Adds a normale page or cover to your pdf
- download() — Forces the download of the pdf
- getHtml() — Generates the html code you need for the pdf
- preview() — Streams the pdf to your browser to preview it
- removeOption() — Remove a specific option for the pdf you are creating
- save() — Saves the pdf file
- setFolderName() — Specify the pdf location
- setGlobalOptions() — Set the global options for all pdfs
- setOption() — Set a specific option for the pdf you are creating