src/components/form/PDFFunctions.js
/**
 * Measure the text width of a string
 * @param  {String} name the string name
 *
 * @return {Number}    the width size of the string
 */
Measure the text width of a string
@param  {String} name the string name

@return {Number}    the width size of the string
Measure the text width of a string @param { String } name the string name @return { Number } the width size of the string
function measureInputText(name)
{
    var canvas = document.createElement("canvas");
    var ctx = canvas.getContext("2d");
    var txtWidth = ctx.measureText(name).width;
    return txtWidth;
}
function measureInputText ( name ) { var canvas = document . createElement ( "canvas" ) ; var ctx = canvas . getContext ( "2d" ) ; var txtWidth = ctx . measureText ( name ) . width ; return txtWidth ; }
Measure the text width of a string
 @param  {String} name the string name
Measure the text width of a string @param { String } name the string name