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

Print to PDF via QWebView: if html includes transparent PNG the text is displayed with bolded font on PDF

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: 4.7.4
    • Fix Version/s: 4.8.x
    • Component/s: GUI: Printing, WebKit
    • Labels:
      None
    • Environment:
      Windows7 + Qt4.7.4 (tested also with Qt4.8.0RC)

      Description

      Attached example.zip includes an example application (modified from $QTDIR\examples\webkit\preview example app) which can be used to reproduce the error. Steps:

      • Launch the application and select File - Open. Open a file 'transparent_PNG_sample.html' which is also attached on the .zip.
      • Select Print - Print PDF. Type file name and press Save.
      • Open 'GIF_sample.html' by selecting File - Open.
      • Select Print - Print PDF. Type file name and press Save.

      Compare the PDF printing output for 'transparent_PNG_sample.html' and 'GIF_sample.html' (attached .zip file includes examples of printing outputs).

      --> Error: PDF created from 'transparent_PNG_sample.html' includes text with bold font. PDF created from 'GIF_sample.html' includes text with non-bold font. The only difference between these html files is that 'transparent_PNG_sample.html' uses transparent PNG file instead of GIF file.

      Tested with Qt4.7.4 and Qt4.8.0RC.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              johnlayt John Layt
              Reporter:
              qtcomsupport Qt Support
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes