NSPrintInfo vs fit to page

Does anyone know how I can determine if the "Scale to fit paper size" checkbox (under Page Layout) in the print panel has been checked by the user ?

As far as I can tell, there is no difference whatsoever in the panel's NSPrintInfo whether that checkbox has been checked or not. If the "Scale down only" checkbox has been checked there is one dictionary value which changes from YES to NO (its key is "com_apple_print_PageToPaperMappingAllowScalingUp"), but the "Scale to fit paper size" checkbox seems to have a decorational purpose only...

Accepted Reply

Just in case someone else needs this, I found the answer:


The key "com.apple.print.PageToPaperMappingAllowScalingUp" is actually a tristate

  • Not present: no scaling
  • value == 1: scale up or down to fit
  • value == 0: scale down only

Replies

Just in case someone else needs this, I found the answer:


The key "com.apple.print.PageToPaperMappingAllowScalingUp" is actually a tristate

  • Not present: no scaling
  • value == 1: scale up or down to fit
  • value == 0: scale down only