Basic
These examples show how to use TBS's syntax "field" and "block" in templates.
| Document | Zip method | Template | PHP function |
|---|---|---|---|
| shell | basicSuccess.odt | executeBasic | |
| shell | basicCalcSuccess.ods | executeBasicCalc | |
| shell | basicWordSuccess.docx | executeBasicWord |
Charset
These examples are for testing for specials characters.
| Document | Zip method | Template | PHP function |
|---|---|---|---|
| shell | charsetSuccess.odt | executeCharset | |
| shell | charsetSuccess.ods | ||
| shell | charsetSuccess.sxw | ||
| shell | charsetSuccess.sxc | ||
| shell | charsetSuccess.docx |
Merge with database
These examples show how to merge with a database.
| Document | Zip method | Template | PHP function |
|---|---|---|---|
| Merge with an array | |||
| shell | blogPostSuccess.odt | executeBlogPost | |
| shell | blogPostSuccess.ods | ||
| shell | blogPostSuccess.docx | ||
| Merge with the Doctrine method $result->toArray(true) | |||
| shell | blogPostDoctrineSuccess.ods | executeBlogPostDoctrine |
Merge with object
These examples show how to merge with an object.
| Document | Zip method | Template | PHP function |
|---|---|---|---|
| ziparchive | classSuccess.odt | executeClass | |
| ziparchive | classSuccess.docx |
Add a file into document
These examples show how to add files in the document, like a picture.
| Document | Zip method | Template | PHP function |
|---|---|---|---|
| shell | fileShellSuccess.odt | executeFileShell | |
| shell | fileShellSuccess.docx | ||
| ziparchive | fileZiparchiveSuccess.odt | executeFileZiparchive |
Parameter 'image'
These examples show how to merge pictures with differents values for the parameter.
TIPS
tip #1 : Set the TBS tags for word processing image
To open the dialox box, right click on picture, then click on 'Pictures...'
tip #2 : Set the TBS tags for spreadsheet image
To open the dialox box, right click on picture, then click on 'Names...'
NOTE
note #1 : only for OpenDocument
note #2 : images in a spreadsheet can't be merged in within a block, due to the image position refer to the page, not the cell.
Parameter 'link' to transform to linkable text
| Document | Parameter | Zip method | Template | PHP function |
|---|---|---|---|---|
| link | shell | linkSuccess.odt | executeLink | |
| link | shell | linkSuccess.ods | ||
| link | shell | linkBlockSuccess.ods | executeLinkBlock |
NOTE
note #1 : only for OpenDocument
Parameter 'type' to transform to native OpenDocument (OpenOffice) format
| Document | Parameter | Zip method | Template | PHP function |
|---|---|---|---|---|
| type | shell | tableCellFormatSuccess.ods | executeTableCellFormat | |
| type | shell | tableCellFormatBlockSuccess.ods | executeTableCellFormatBlock | |
| type | shell | tableCellFormulaSuccess.ods | executeTableCellFormula |
TIPS
tip #1 : Set the format in cell
To open the dialox box, right click on cell, then click on 'Format Cells...'
NOTE
note #1 : only for OpenDocument
note #2 : only for spreadsheets (not working in word processing tables)
An order
| Document | Zip method | Template | PHP function |
|---|---|---|---|
| shell | orderSuccess.odt | executeOrder |




