'Returns true if fieldname is to be hidden for print.
Print Hide can be set via the Print Format Builder or in the controller as a list
of hidden fields. Example
class MyDoc(Document):
def __setup__(self):
self.print_hide = ["field1", "field2"]
:param fieldname: Fieldname to be checked if hidden.'

def is_print_hide(self, fieldname, df=None, for_print=True):

    meta_df = self.meta.get_field(fieldname)
    if (meta_df and meta_df.get(u'__print_hide')):
        return True
    print_hide = 0
    if ((self.get(fieldname) == 0) and (not self.meta.istable)):
        print_hide = ((df and df.print_hide_if_no_value) or (meta_df and meta_df.print_hide_if_no_value))
    if (not print_hide):
        if (df and (df.print_hide is not None)):
            print_hide = df.print_hide
        elif meta_df:
            print_hide = meta_df.print_hide
    return print_hide
