Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77506

develop PDF rendering strategy for Qt Quick

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: PDF, Quick: Other
    • Labels:
      None

      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                srutledg Shawn Rutledge
                Reporter:
                srutledg Shawn Rutledge
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes