Nookie_IN Nookie_IN - 4 months ago 52
Objective-C Question

Set paper size for printing in Objective-c

I'm trying to print document and set paper format(A4,A3,Letter ...) programmatically (without print dialog) but i can't find property to set size(format) of document to print.
Is there a way to do it?


Check the documentation of NSPrintInfo, it has a property called paperSize, which should be more than suitable for you.

NSPrintInfo paperSize