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 "Standard"

	if print_format_name == "Standard":
		return None
	else:
		return frappe.get_doc("Print Format", print_format_name)
Returns print format document
dataset/ETHPy150Open frappe/frappe/frappe/templates/pages/print.py/get_print_format_doc