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

QPrinter ignores PDF options from macOS native print dialog

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.12
    • GUI: Printing
    • None
    • macOS

    Description

      I've attached a simple example. When I use QPrintDialog and select PDF from the native macOS print dialog, I'm presented with the following native PDF options dialog:

      The resulting output file always has the document title set to "whatever" even if I change it to a different value. I've added some debugging lines to the sample code to confirm that QPrinter::docName() always returns "whatever".

      The value in the "author" field does not seem to be used in the output file at all. I've confirmed this and the document title by looking at document properties in Acrobat Reader as well as with the pdfinfo command line tool.

      If I display the QPrintDialog a second time re-using the same QPrinter object, the document title that appears in the native dialog is set to "Untitled" and the default output filename is "Untitled.pdf":

      However, when I save the file (as "Untitled.pdf" or another name) the result still has the "title" field set to "whatever" and QPrinter::docName() returns "whatever" immediately after the dialog finishes.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            jleigh Jessica Leigh
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes