Print ODT File
-
Hi,
There's the Qt Print Support module.
-
I think you should take a look at Okular, they have support for odt files.
-
-
@JonB
Currently ubuntu.
Open read and convert is not the Problem. But QTextDocument has limited html tags. So i can print but ist not formated as it schould be.So i am searching for a lib that can do this.
Install libre is Overkill for only print a odt.
Okular will also Show without styles.Lg chris
-
Hi
That sounds like a bummer.
Could you try
https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-html2pdf-example.htmland see if that give same result ?
-
Summarized:
I'll keep looking. I had no idea that it would be so cumbersome.
First I wrote a class that uses an OTT as a template to create the ODT file. At that time I did not know that it was cumbersome to display or print this file. Converted to HTML is not displayed correctly by QtextEdit. So we have to use QWebEngine. But now I noticed that the conversion to html is also not 100%. During this time I would have probably written my own template designer. I actually wanted to avoid that. I have no idea what I'm going to do now.lg Chris