def get_print_format_doc(print_format_name, meta):
 if (not print_format_name):
  print_format_name = (frappe.form_dict.format or meta.default_print_format or u'Standard')
 if (print_format_name == u'Standard'):
  return None
 else:
  try:
   return frappe.get_doc(u'Print Format', print_format_name)
  except frappe.DoesNotExistError:
   return None

def get_print_format_doc ( print_format_name , meta ) : if ( not print_format_name ) : print_format_name = ( frappe . form_dict . format or meta . default_print_format or u'Standard' ) if ( print_format_name == u'Standard' ) : return None else : try : return frappe . get_doc ( u'Print Format' , print_format_name ) except frappe . DoesNotExistError : return None
returns print format document .