code: def get_filesize(self, f):
          
          try:
              filesize = float(f.get_size())
              return float("%.2f" % (filesize / 1024))
          except (POSKeyError, TypeError, AttributeError):
              return 0.0
docs: Return the filesize of the PDF as a float