Skip to content

Commit 411bddb

Browse files
authored
Merge pull request #20 from antman3351/feature-underline
Added support for underline in TEXT_TYPE
2 parents 4fd9bb3 + 5604cec commit 411bddb

16 files changed

+47
-6
lines changed
207 Bytes
Binary file not shown.

examples/Fpdf/example-table-2-overview.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,12 @@
9090
$row[1]['TEXT_TYPE'] = 'BI';
9191
$row[1]['ALIGN'] = 'MC';
9292

93-
$row[2]['TEXT'] = "\n\n\n\n\nBottom Left Align";
93+
$row[2]['TEXT'] = "\n\n\n\n\nBottom Left Align Underline";
94+
$row[2]['TEXT_TYPE'] = 'U';
9495
$row[2]['ALIGN'] = 'BL';
9596

96-
$row[3]['TEXT'] = 'Middle Justified Align Longer text';
97+
$row[3]['TEXT'] = 'Middle Justified Align Longer text Bold Italic Underline';
98+
$row[3]['TEXT_TYPE'] = 'BIU';
9799
$row[3]['ALIGN'] = 'MJ';
98100

99101
$row[4]['TEXT'] = 'TOP RIGHT Align with top padding(5)';
7.48 KB
Loading
583 Bytes
Binary file not shown.

examples/Tcpdf/example-table-2-overview.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,12 @@
9090
$row[1]['TEXT_TYPE'] = 'BI';
9191
$row[1]['ALIGN'] = 'MC';
9292

93-
$row[2]['TEXT'] = "\n\n\n\n\nBottom Left Align";
93+
$row[2]['TEXT'] = "\n\n\n\n\nBottom Left Align Underline";
94+
$row[2]['TEXT_TYPE'] = 'U';
9495
$row[2]['ALIGN'] = 'BL';
9596

96-
$row[3]['TEXT'] = 'Middle Justified Align Longer text';
97+
$row[3]['TEXT'] = 'Middle Justified Align Longer text Bold Italic Underline';
98+
$row[3]['TEXT_TYPE'] = 'BIU';
9799
$row[3]['ALIGN'] = 'MJ';
98100

99101
$row[4]['TEXT'] = 'TOP RIGHT Align with top padding(5)';
8.27 KB
Loading
207 Bytes
Binary file not shown.

examples/Tfpdf/example-table-2-overview.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,12 @@
9090
$row[1]['TEXT_TYPE'] = 'BI';
9191
$row[1]['ALIGN'] = 'MC';
9292

93-
$row[2]['TEXT'] = "\n\n\n\n\nBottom Left Align";
93+
$row[2]['TEXT'] = "\n\n\n\n\nBottom Left Align Underline";
94+
$row[2]['TEXT_TYPE'] = 'U';
9495
$row[2]['ALIGN'] = 'BL';
9596

96-
$row[3]['TEXT'] = 'Middle Justified Align Longer text';
97+
$row[3]['TEXT'] = 'Middle Justified Align Longer text Bold Italic Underline';
98+
$row[3]['TEXT_TYPE'] = 'BIU';
9799
$row[3]['ALIGN'] = 'MJ';
98100

99101
$row[4]['TEXT'] = 'TOP RIGHT Align with top padding(5)';
7.48 KB
Loading

src/Fpdf/Pdf.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,9 @@ public function getRTL(): bool
8888
{
8989
return false;
9090
}
91+
92+
public function getUnderline() : bool
93+
{
94+
return $this->underline;
95+
}
9196
}

0 commit comments

Comments
 (0)