Details
-
Task
-
Resolution: Fixed
-
P1: Critical
-
None
-
None
-
b60c00f4a (dev), 2180ce890 (6.7), 6ba530da2 (6.6), 913f49b81 (6.5)
Description
The plan for now is to make a subclass of QImageIOHandler to expose PDF as an image format: that way an ordinary Image can be used to render a page of a PDF in QML. And Image will get the same currentFrame and frameCount properties that are in AnimatedImage, so that you can use currentFrame to step through the pages or frames of any multi-image format (such as TIFF, ICO, PDF).
Other features such as selecting ranges of characters, searching etc. can be developed via layers on top. But the most basic thing you can do with a PDF is render a page, and PDFium currently uses the Skia engine to do that, so it's easier to let it render whole-page images than any other rendering strategy. Thus our PDF support will be quite like our SVG support so far in Qt Quick. Later we can think about doing it via QPainter, perhaps, or by creating scene graph nodes for objects (such as glyphs, images and vector graphics) within each page: but the feasibility of that is uncertain so far (see QTBUG-77505).
Attachments
Issue Links
- is required for
-
QTBUG-77503 Prepare for a supported release of QtPDF with more features
- Closed
- relates to
-
QTBUG-90627 Research a better PixmapCache <-> Image Provider interaction
- Open
-
QTBUG-104769 pdfviewer example: Pinch zoom on laptop trackpad stops working if zoom way in
- Closed
- resulted in
-
QTBUG-104767 Using PdfPageImage instead of Image on PDF file results in EXC_BAD_ACCESS (SIGSEGV)
- Closed
-
QTBUG-114953 PdfMultiPageView: Very poor memory performance when zooming in/out of long documents
- Closed