Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
4.7.3
-
None
Description
To reproduce this, on Mac OS X create a QPrintDialog. When the dialog is displayed, select the PDF dropdown, then Save as PostScript...
Whatever you put in here, the content of the file printed is a PDF. This is due to the format being hardwired in QMacPrintEngine::begin() - The call to PMSessionSetDestination uses a mime type of kPMDocumentFormatPDF.
This can be remedied by retrieving and storing the correct mime type in the dialog code - in QPrintDialog_mac.mm printPanelDidEnd, after the code calling PMSessionCopyDestinationLocation (circa line 175), you can access the correct information using PMSessionCopyDestinationFormat and store it in the QMacPrintEnginePrivate class with the filename. This can then be passed into the PSSessionSetDestination call mentioned earlier.
Attachments
Issue Links
- is required for
-
QTBUG-37698 QtPrintSupport - Dialog Issues
- Open
-
QTBUG-25383 QtPrintSupport - macOS Issues
- Closed