Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2.12
-
None
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.