Solved Is there any way to use Qt to display PDFs or MS Office documents?
-
I would like to build a cross-platform app with Qt that enables the user to view various document formats especially PDF, Word & Excel.
Is there any way that this can be achieved with Qt either using native features or 3rd-party libraries (especially if for example MS Office apps are not installed on the actual device)?
Thanks,
Sammy
-
@SammyCat You can't do that directly with Qt.
For PDF see https://wiki.qt.io/Handling_PDF there are some libraries mentioned.
Don't know about any libs for Microsoft Office files (maybe LibreOffice project provides some). -
Not for MSOffice but PDF can be shown with poppler (
LGPL)
/edit: it's under GPL, not LGPL -
@Christian-Ehrlicher said in Is there any way to use Qt to display PDFs or MS Office documents?:
PDF can be shown with poppler (LGPL)
yes, specially the Qt5 port