diff --git a/CRM/Utils/PDF/Label.php b/CRM/Utils/PDF/Label.php index 0f6a613feb8..97d765de033 100644 --- a/CRM/Utils/PDF/Label.php +++ b/CRM/Utils/PDF/Label.php @@ -184,8 +184,10 @@ public function LabelSetFormat(&$format, $unit) { * @param string $text */ public function generateLabel($text) { + // paddingLeft is used for both left & right padding so needs to be + // subtracted twice from width to get the width that is available for text $args = array( - 'w' => $this->width, + 'w' => $this->width - 2 * $this->paddingLeft, 'h' => 0, 'txt' => $text, 'border' => 0,