code: function unitConvert(obj, k) {
    if (objType(obj) === 'number') {
      return obj * 72 / 96 / k;
    } else {
      var newObj = {};
      for (var key in obj) {
        newObj[key] = obj[key] * 72 / 96 / k;
      }
      return newObj;
    }
  }
docs: Convert units from px using the conversion value 'k' from jsPDF.