Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Can somebody test and confirm found BUG? test project included.
Forum Updated to NodeBB v4.3 + New Features

Can somebody test and confirm found BUG? test project included.

Scheduled Pinned Locked Moved The Lounge
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AcerExtensa
    wrote on 11 Oct 2012, 10:59 last edited by
    #1

    Hi together,
    can somebody please test one BUG from me submitted to JIRA? I have tested it with Windows XP/7 and Qt 4.8.2 & 4.8.3.
    Would be nice to test it with other Qt versions and on windows Vista too...

    Link to the submitted BUG itself: "QTBUG-27508":https://bugreports.qt-project.org/browse/QTBUG-27508

    Here is the ready to be tested Qt project: "PrintingBUG.zip":https://bugreports.qt-project.org/secure/attachment/29558/PrintingBUG.zip

    P.S.: make sure you have copied print.html file into the same folder where the created executable is. pdf file will be created in the same folder with following filename: print.html.pdf

    Here is description of the BUG:

    Hello,
    in our custom QtWebKit browser users can print their html e-mails and other html pages. It works good for unicode(utf-8) htmls with standard characters in german, english, russian and over languages. But if there is any special unicode symbols or if html contains chinese or japanese language characters, printer output is totally broken. We have tested this with standard windows printing system(XPS printer), with some over physical printers and with pdf printer too(PDFCreator).

    Output is broken only for QPrinter::NativeFormat and QPrinter::PostScriptFormat. Using QPrinter::PdfFormat outputs file without errors. Also, it is broken only on windows systems(tested on Windows XP and Windows 7 32-/64-bit). Printer output on linux doesn't have this problem. Mac OS isn't tested.

    If you zoom printed with XPS or pdf printer document you can see what chinese/japanese and special symbols are printer atop of previous standard characters. I have added zoomed screenshot named printing_nativeformat_zoom.jpeg to archive for clarity.

    Attached archive contains simple test project which prints html page two time:
    first time with native format
    second time with pdf format to the file

    Other files included:
    print.html - is an example html page with some special symbols and japanese symbols.

    printing_nativeformat.jpeg - is an screenshot of broken printout with native format and Microsoft XPS printer.
    printing_nativeformat_zoom.jpeg - zoomed printout of native format with Microsoft XPS printer.
    printing_pdfformat.jpeg - screenshot of file created with QPrinter::PdfFormat which contains no error.
    printing_webview.jpeg - screenshot of QWebView widget with print.html file loaded.

    P.S.: For included Qt project: make sure you have copied print.html file into the same folder where the created executable is. pdf file will be created in the same folder with following filename: print.html.pdf

    Thank you in advance!

    God is Real unless explicitly declared as Integer.

    1 Reply Last reply
    0

    1/1

    11 Oct 2012, 10:59

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved