The Qt PDF module contains classes and functions for rendering PDF documents. The QPdfDocument class loads a PDF document and renders pages from it according to the options provided by the QPdfDocumentRenderOptions class. The QPdfPageRenderer class manages a queue that collects all render requests. The QPdfPageNavigation class handles the navigation through a PDF document.
find_package() command to locate the needed module components in the
find_package(Qt5 COMPONENTS Pdf REQUIRED) target_link_libraries(mytarget Qt5::Pdf)
See also the Build with CMake overview.
To include the definitions of the module's classes, use the following directive:
To link against the module, add this line to your qmake project file:
QT += pdf
- Qt PDF Overview
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.