Nookie_IN Nookie_IN - 1 year ago 130
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 Source

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

NSPrintInfo paperSize

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download