Nookie_IN Nookie_IN - 3 months ago 30
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?

Answer

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

NSPrintInfo paperSize

Comments