Nookie_IN Nookie_IN - 8 months ago 80
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