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

When printing to a pdf file the text in the resulting file isn't searchable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.7.1
    • 4.5.0
    • GUI: Printing
    • None
    • f7ee0c9efcb6cb36a95f49bc998524e25480f8ba

      When using:

      webPage = new QWebPage();

      QPrinter printer;
      printer.setOutputFileName(outputFilename);

      webPage->mainFrame()->print(&printer);

      I expected to see a PDF document with a valid text layer.

      Got instead:
      The text in the PDF wasn't searchable and if I tried to copy some text of the document into a text editor only unprintable characters were pasted. Selecting text in the PDF document worked, though.

      This is also happening with the textedit demo, the text is not searchable.

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

            axisnokia axisnokia (Inactive)
            janichol Andy Nichols
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes