SampleCatalogSmartTemplate
extends DatasheetSmartTemplate
in package
Tags
Table of Contents
- addPages() : CSSmartPage
- This is the most important method to implement when defining your CSSmartTemplate Use the $doc parameter to modify the document as required.
- finalize() : void
- This method will be called by the renderer once the internal tcpdf object has been created and the html output provided through the addPages method was placed. It is the final hook to deal with the extended api of the tcpdf object, which has a very rich and powerful api.
Methods
addPages()
This is the most important method to implement when defining your CSSmartTemplate Use the $doc parameter to modify the document as required.
public
addPages(CSSmartDocument $doc[, CSSmartPreset $preset = null ]) : CSSmartPage
Parameters
- $doc : CSSmartDocument
-
the CSSmartDocument object that the template represents
- $preset : CSSmartPreset = null
-
any parameters
Tags
Return values
CSSmartPage —the resulting page object
finalize()
This method will be called by the renderer once the internal tcpdf object has been created and the html output provided through the addPages method was placed. It is the final hook to deal with the extended api of the tcpdf object, which has a very rich and powerful api.
public
finalize(TCPDF $tcpdf, Html2Pdf $html2pdf) : void
Parameters
- $tcpdf : TCPDF
- $html2pdf : Html2Pdf
