LT Dev
Qt Pdf Viewer Library
The qt-pdf-viewer-library is a qml wrapper of pdf-js library which allows you to render PDF files in a WebView. This library also works for Android devices, and it uses WebSocketServer, WebSocketTransport and WebChannel to exchange data between qml and the browser environment.
Dependencies
The qt modules needed by the library are:
webchannelwebsocketswebview
Features
-
the library is
open source(Apache-2.0license) -
the library supports
desktop,embedded, andandroiddevices -
the library allows PDF
rotation,zoom in/out,text search,scroll mode,scale mode,change view visualization, pagespreview, error handling -
the library is
UI indipendent: all operations on the PDF are provided by thePdfViewcomponent. -
easy setup
-
more info can be found on github
Testing
The qt-pdf-viewer-library has been tested on the following qt versions:
-
Qt 5.12.4(Desktop) -
Qt 5.15.2(Desktop and Android) -
Qt 6.2.2(Desktop)
on the following Android devices:
Galaxy Nexus, API 22, Android 5.1Nexus S, API 23, Android 6.0Nexus S, API 24, Android 7.0Pixel 2 XL, API 27, Android 8.1Pixel 4, API 28, Android 9.0Redmi Note 8 pro, API 29, Android 10Nexus 5X, API 29, Android 10Nexus 10, API 30, Android 11Pixel XL, API 30, Android 11
and on the following os:
Linux KDE 20.04
Screenshots
The sample app and the screenshots can be found on github.