Date: prev next · Thread: first prev next last


Hello again,

in the meantime, I have published a new open source library based on ODFToolkit, which reads ODT documents as templates and replaces placeholders with text, images, tables or even with the contents of other documents, so that reusable components can be defined. It is also quite simple to add new functionalities by adding freely definable placeholders. I wrote that library because I couldn't find one that fulfills these requirements, maybe it can help you. Further information at: https://underdocx.org and https://github.com/winterrifier/underdocx

Regards, Gerald


Am 07.06.2024 um 22:25 schrieb Alexander Gribanov:
Hello!

We are going to use the ODF Toolkit for reports in our application.
What is the best way to use ODT as a template?

1. The Accountant is making ODT-Document with all the markup, include
placeholders like "$company-name" and then we use "Search and Replace
API"... How to use this method for working with Tables by the way? :)

2. Maybe there is a better way, something like placeholders with IDs, like
in HTML+JavaScript we can use? For example:
document.getElementById('status-label').innerText = 'Error';

3. Maybe there is some kind of even better way?

PS. We need NOT text only, but for some forms we need Tables, like the
Accountant makes the required amount of Columns, but with the only 1 empty
(or with placeholders) Row, which we can duplicate programmatically,
depending on how much data we have...

Is there anything to read about it, please?
Thank You very very much :)



--
To unsubscribe e-mail to: dev+unsubscribe@odftoolkit.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.odftoolkit.org/dev/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.