PMSessionSetDestination 3 results?
PMSessionSetDestination 3 results?
- Subject: PMSessionSetDestination 3 results?
- From: Ruben Smits <email@hidden>
- Date: Thu, 17 Jun 2004 09:53:38 +0200
Hi,
I want to force printing to PostScript. Therefore I add the call
PMSessionSetDestination(printSession, printSettings, destType,
CFSTR("application/postscript"), (CFURLRef)[NSURL URLWithString:path]);
at the point where the user did click OK in the printdialog.
PrintSession and printSettings have been created correctly, destType
found with the call PMSessionGetDestinationType() just before this
line, path was found with PMSessionCopyDestinationLocation().
Before this line, the function PMSessionGetDocumentFormatGeneration()
results in the array
0 : <CFString 0xa16e8cb0 [0xa01900e0]>{contents = "application/pdf"}
1 : <CFString 0xa16e8cc0 [0xa01900e0]>{contents =
"application/vnd.apple.printing-pict-ps-viapsnormalizer"}
After this call the function PMSessionGetDocumentFormatGeneration()
results in the array
0 : <CFString 0xa16e8cb0 [0xa01900e0]>{contents = "application/pdf"}
1 : <CFString 0xa16e8cc0 [0xa01900e0]>{contents =
"application/vnd.apple.printing-pict-ps-viapsnormalizer"}
2 : <CFString 0xa16e8cd0 [0xa01900e0]>{contents =
"application/vnd.apple.printing-pict-ps"}
Documentation for PMSessionGetDocumentFormatGeneration() indicates 2
formats are supported in OSX: PDF and PostScript.
Question: I understand Item 0) (PDF) in the last array, but what about
item 1) and 2)? Why are there 2 different kinds of PostScript in the
array? What's the difference between them? Since documentation tells
only 2 options are supported in OSX, I'd expect only 2 items in this
array.
----------------------
Ruben Smits
----------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.