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.