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

Provide QPdfDocument rotation information

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.15, 6.2, 6.5, 6.6, 6.7, 6.8
    • PDF
    • None
    • All

    Description

      Some PDF files use page rotation: for instance, a document using the A4 paper format in landscape mode.

      While displaying is correct with QPdfDocument rendering, this can be a problem if trying to actually print the PDF file with QPrinter, since the actual orientation has to be "guessed" considering the aspect ratio of the document's pagePointSize(), which would just be an unacceptable assumption for arbitrary paper sizes of the source document (for example, a custom page size that seems in landscape mode, but is just wider than taller).

      If rotation information is given (which seems possible from the Pdfium API), it would make things easier since the dev would then be able to properly set the page size and rotation in the renderer and/or set the printer orientation accurately.

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            musicamante Maurizio Berti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes