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

HTML page printed into PDF file should be properly split

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.8.6
    • WebKit
    • None

    Description

      I've noticed a major change in printing HTML pages into PDF files between Qt 4.7.2 and 4.8.6 (I don't know exactly the version this change happened, nor if the newest Qt still has the same problem).
      Newer Qt doesn't move printed elements if they don't fit the current page size, it just prints part of element on current page and the rest on next page. Older Qt prints whole element on next page. I didn't find possibility to change this behaviour (is there any?).
      See attached pdf files (4.7.2.pdf is OK, 4.8.6.pdf is not). Notice that also text row is split horizontally, which makes it unreadable.

      PS.: I create QWebPage, and then mainFrame()->load() to load HTML, and then mainFrame()->print() using QPrinter set into QPrinter::PdfFormat output format.

      Attachments

        1. 4.7.2.pdf
          127 kB
        2. 4.8.6.pdf
          127 kB

        Issue Links

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

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              bodzio131 Bogdan Slusarczyk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes