php - TCPDF Adding Margin on Write Function -
using tcpdf library, attempting center text right margin.
so basically, take whole width minus 0.25 inches , center text based off of that. tcpdf library provides documentation not provide information on how set margin on write() function.
write( $h, $txt, $link = '', $fill = false, $align = '', $ln = false, $stretch = 0, $firstline = false, $firstblock = false, $maxh = 0, $wadj = 0, $margin = '' ) here current code writing text:
$pdf->write(4.5, 'sample text', '', false, 'c', false, 1, false, false, 0, 0, array(0, 0, 0.25, 0)); this myself assuming margin array (top, left, right, bottom).
so, how set margins on text in write() function while having text centered still?
Comments
Post a Comment