Using a Qt module requires linking against the module library, either directly or through other dependencies. If the PDF file does not render its own background, the image has a transparent background. You can simply use Image, and set the currentFrame property to the page index that you wish to display. If you only need to render page images, without features such as text selection, search and navigation, this module includes a QImageIOHandler plugin that treats PDF as a scalable image format, similar to SVG. The full-featured viewer components are composed of lower-level QML components that can be used separately if you need to write a more customized PDF viewing application: PdfDocument, PdfPageImage, PdfPageNavigator, PdfSelection, PdfSearchModel, PdfLinkModel, and PdfBookmarkModel. PdfScrollablePageView shows one page at a time, with scrolling and PdfPageView shows one full page at a time, without scrolling. PdfMultiPageView should be your first choice for the most common user experience: flicking through the pages in the entire document. The QPdfView widget is a complete PDF viewer, and the PDF Viewer Example shows how to use it.įor Qt Quick applications, three kinds of full-featured viewer components are provided. The QPdfLinkModel holds information about hyperlinks on a page. The QPdfBookmarkModel class holds the table of contents, if present. The QPdfSearchModel class searches for a string and holds the search results. The QPdfPageNavigator class handles the navigation through a PDF document. The QPdfPageRenderer class manages a queue that collects all render requests. The QPdfDocument class loads a PDF document and renders pages from it according to the options provided by the QPdfDocumentRenderOptions class. The Qt PDF module contains classes and functions for rendering PDF documents.
1 Comment
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |