Questions tagged [tinybutstrong]

TinyButStrong is a template engine for PHP.

TinyButStrong is a template engine for PHP. It can merge not only HTML, but also XML, text, and any textual source by the technical of template. Provided in a single file, TinyButStrong is a brick in your application, and can be inserted in any framework. It can thus cover only one feature or being a central component of your application.

TinyButStrong can be empowered by the plug-in OpenTBS in order to merge OpenOffice, LibreOffice and Microsoft Office documents.

159 questions
0
votes
1 answer

Adding pic on the fly to MS excel with OpenTBS

It was noted that ope=changepic is not possible on xlsx templates. Is there a workaround to this? Maybe thru addpic? Or maybe modifying the archive? How? Thanks!
jovani
  • 669
  • 8
  • 16
-1
votes
1 answer

Bug after php update

I have a bug on my application after upgrading my php version. The 8.0 php version is ok but if I try to update on 8.1 or 8.2 my appication block with an error I don't understand. TinyButStrong Error in field [var.menu...]: parameter script with…
-1
votes
1 answer

How to not replicate an paragraph on tbs:page

I have a template with one page containing a block of tbs:page type. This function replicate greatly my content. But i have a problem. On top of this page, I have a title/topic for my table of contents, but i only need this index on the first page…
-1
votes
1 answer

TBS (TinyButStrong) get last value

I have a Word template, where I go through a TBS block and dynamically display the values. Now I'd like to compare the actual value with the last value displayed. Is there any possibility to solve this in word? I was thinking of setting a variable…
codeup
  • 21
  • 4
-2
votes
1 answer

Merge multi doc & docx files in php

I have Multi Files (doc and docx ) maybe one maybe more This is defined by User . I will get it all and print it in one file So i need to merge it in one file . $filePath = '../part_folder/' ; $filesName = [ '1_en.docx' , …
-2
votes
2 answers

problem with 'bmagnet' parameter on 2 level table with OpenTBS

I uses OpenTBS to produce IT invoices. I have a problem on a block with a 'bmagnet' on 2 levels table: table + table: table. The problem is on '101' block. When the 'lib' field is missing, the deleted block goes too far and it corruptes the file.…
O.Hot
  • 1
  • 1
-2
votes
1 answer

Can a 'when' conditional section show content based on a 'contains' or 'includes' parameter?

I'm using TBS/OpenTBS (thanks Skrol, it's awesome) to produce Word documents based on form inputs. One of the form fields is a checkbox. Let's say it has ten options. I can display content fine if a single option is selected, but if, say, 4 options…
Richard
  • 1
  • 2
-2
votes
1 answer

Using TinyButStrong (TBS) to generate a PDF from a DOCX

I have used TBS (TinyButStrong) for several PHP projects to generate DOCX or XLSX files based on a template. I am now trying to popular a DOCX template with TBS and generate a PDF at the of the process. It this possible with TBS? It doesnt seem like…
AAA
  • 2,388
  • 9
  • 32
  • 47
-3
votes
1 answer

Save docx into mysql

I am using the tinybutstrong to generate docx files from a template. Currently the generated document will be downloaded as file. The following code is in use: ... $output_file_name = date('Y_m_d').'CR_Id='.$Id.'.docx'; $TBS->Show(OPENTBS_DOWNLOAD,…
user727198
  • 89
  • 1
  • 2
  • 11
1 2 3
10
11