Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.4.0 FF
-
None
Description
PdfMultiPageView.qml works around it by controlling sourceSize like this:
property size pagePointSize: document.pagePointSize(index)
property real pageScale: image.paintedWidth / pagePointSize.width
PdfPageImage {
id: image
document: root.document
currentPage: index
asynchronous: true
fillMode: Image.PreserveAspectFit
width: paper.pagePointSize.width * root.renderScale
height: paper.pagePointSize.height * root.renderScale
property real renderScale: root.renderScale
property real oldRenderScale: 1
onRenderScaleChanged: {
image.sourceSize.width = paper.pagePointSize.width * renderScale * Screen.devicePixelRatio
image.sourceSize.height = 0
paper.scale = 1
searchHighlights.update()
tableView.forceLayout()
}
but since PdfPageImage has one purpose (unlike Image), it would be more sensible if this scaling stuff just worked by default, rather than having to write more QML like that every time you use it.
Attachments
Issue Links
- relates to
-
QTBUG-86948 When using QImageReader to load a PDF then the PDF images can be blurry and seem to be at half the size they should be
- Closed