Hello Jeremy,
On Sun, 21 Apr 2024 at 15:34, Jeremy Morton <admin@game-point.net> wrote:
I've been looking into ways to edit ODF files from my C# program and
was surprised at how limited it currently is. Considering ODF is an
open format I'd have thought there would be a straightforward way to
do it but it seems that unless you happen to be using Java (and can
use this ODF Toolkit),
So far I was able to follow you...
you actually have to install and run an
instance of LibreOffice - then communicate with it using the
LibreOffice SDK - to edit these files which seems like a rather crazy
way of doing things to me, especially on a server.
What scenario are you describing above?
The ODFDOM of the ODF Toolkit is just Java and does not require a
LibreOffice.
As soon as someone requires a layout engine it makes sense to load the ODF
in LibreOffice.
For instance, in case you like to generate an ODF document with the ODFDOM
from data sources and finally like create a PDF from it.
As the ODF Toolkit
homepage acknowledges, this is a very heavyweight way to do things.
Could you provide the link, I am getting curious here :-)
Excel files, for instance, can just be edited directly using a library
like EPPlus or NPOI.
Have there been any plans to port ODF Toolkit to other languages?
Obviously in my case I'd like to see a C#/CLI version so I can just
edit ODF documents in C# programs without running a whole LibreOffice
install in the background, but porting it to Python, JS, etc. would
also seem to be appropriate.
The whole idea of manual porting seems awkward to me as you duplicate the
maintenance costs. Found issues and new features have to be implemented for
each language.
Either, some concepts are being described in a meta (domain-specific)
language and the specific source code is being generated (which is not yet
the case) or Java executable code is being generated.
Best regards,
Svante
--
Best regards,
Jeremy Morton (Jez)
--
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
--
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.