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

Eps images created by the Qt engine that contain text can't be included into MS Word

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P5: Not important
    • None
    • 4.7.2
    • GUI: Painting
    • None

    Description

      The image opens in GSview.

      Message displayed by GSView

      GSview 4.9 2007-11-18
      Unknown in Comments section at line 7:
      %%DocumentFonts: (atend)

      Unknown in Trailer section at line 217:
      %%DocumentFonts:

      GPL Ghostscript 8.71 (2010-02-10)
      Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
      This software comes with NO WARRANTY: see the file PUBLIC for details.
      Displaying DSC file C:/sftasks/current/bloatedPainterSimplified-build-desktop/test.eps
      Displaying page 1

      If the image doesn't contain any text it can be included in Word without problems.

      Example reproducing the problem
      #include <QtGui>
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
      
          QGraphicsScene scene;
      
          scene.addText("Hello");
      
      //    for (int i = 0; i < 100; i++)
      //        scene.addLine(0, 0, 100, i);
      
          QPrinter printer;
          printer.setOutputFileName("test.eps");
          printer.setPaperSize(QPrinter::A4);
          printer.setPageMargins(0,0,0,0, QPrinter::Millimeter);
          printer.setOutputFormat( QPrinter::PostScriptFormat );
      
          QPainter painter(&printer);
          scene.render(&painter);
          painter.end();
      
          return 0;
      }
      

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            mpejcoch Martin Pejcoch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes