79530703

Date: 2025-03-24 09:45:43
Score: 1
Natty:
Report link

let charSpace = 0;
let dim = doc.getTextDimensions(strValue);
if (align === 'justify' && neededWidth > dim.w && (dim.w / neededWidth ) > 0.8 ) {
 charSpace = (neededWidth - dim.w) / strValue.length;
} 
doc.text(strValue, xCoord, yCoord, {charSpace });

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dima