- Qt 6.11
- Qt PDF
- QML Types
- PdfStyle
- Qt 6.11.2 Reference Documentation

# PdfStyle QML Type

A styling interface for the PDF viewer components. More...

Import Statement: | `import QtQuick.Pdf`
Inherits: | QtObject

- List of all members, including inherited members

## Properties

- currentSearchResultStrokeColor : color
- currentSearchResultStrokeWidth : real
- pageSearchResultsColor : color
- selectionColor : color

## Detailed Description

PdfStyle provides properties to modify the appearance of PdfMultiPageView, PdfScrollablePageView, and PdfPageView.

Default styles are provided to match the styles in Qt Quick Controls. File selectors are used to load the PDF style corresponding to the Controls style in use. Custom styles are possible, using different file selectors.

## Property Documentation

### currentSearchResultStrokeColor : color

The color of the box outline around the current search result.

See also PdfMultiPageView::searchBack(), PdfMultiPageView::searchForward(), and PdfSearchModel::currentResult.

### currentSearchResultStrokeWidth : real

The line width of the box outline around the current search result.

See also PdfMultiPageView::searchBack(), PdfMultiPageView::searchForward(), and PdfSearchModel::currentResult.

### pageSearchResultsColor : color

The color of translucent rectangles that are overlaid on text that matches the search string.

See also PdfSearchModel.

### selectionColor : color

The color of translucent rectangles that are overlaid on selected text.

See also PdfSelection.